• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Lesson 131: How to use DateDif in Excel

AnonyViet by AnonyViet
January 25, 2023
in Office
0

To get the number of days, weeks or years between two dates in Excel, use the DATEDIF function. The DATEDIF function has three parameters that make it easy to use.

Join the channel Telegram of the AnonyViet 👉 Link 👈

How to use DateDif in Excel

1. Enter “d” for the third parameter to get the number of days between two different times.

Lesson 131: How to use DateDif in Excel 13

Note: =A2-A1 gives the same result.

2. Enter “m” for the third argument to get the number of months between two different dates.

Lesson 131: How to use DateDif in Excel 14

3. Enter “y” for the third parameter to get the number of years between two different dates.

Lesson 131: How to use DateDif in Excel 15

4. Enter “yd” for the third parameter to skip the year and get the number of days between the two dates.

Lesson 131: How to use DateDif in Excel 16

5. Enter “md” for the third parameter to skip the month and get the number of days between the two dates.

Lesson 131: How to use DateDif in Excel 17

6. Enter “ym” for the third parameter to skip the year and get the number of months between the two dates.

Lesson 131: How to use DateDif in Excel 18

Important note: the DATEDIF function returns the full number of days, months, or years. This may give unexpected results when the number of days/months of the second day is lower than the number of days/months of the first day. See the example below.

Lesson 131: How to use DateDif in Excel 19

The result we get is 6 years. We need to use the following formula to return 7 years.

Lesson 131: How to use DateDif in Excel 20

In addition, you can also view many other excel articles here.

The article achieved: 5/5 – (100 votes)

Tags: DateDifExcelLesson
Previous Post

TOP 4 alternative Chat applications when Zalo charges users

Next Post

Lesson 137: Calculate days to birthdays in Excel

AnonyViet

AnonyViet

Related Posts

Instructions on how to convert text into QR codes in Word
Office

Instructions on how to convert text into QR codes in Word

October 5, 2026
Tool to adjust the format of administrative documents according to Decree 30
Office

Tool to adjust the format of administrative documents according to Decree 30

October 1, 2026
How to add Watermark to Google Docs to protect copyright
Office

How to add Watermark to Google Docs to protect copyright

April 19, 2026
Instructions on how to hide formulas in Excel to secure data
Office

Instructions on how to hide formulas in Excel to secure data

February 6, 2026
Top who creates the most beautiful presentation slide today
Office

Top who creates the most beautiful presentation slide today

September 23, 2025
Automatically check and correct spelling errors on Google Docs
Office

Automatically check and correct spelling errors on Google Docs

February 23, 2025
Next Post
Lesson 137: Calculate days to birthdays in Excel

Lesson 137: Calculate days to birthdays in Excel

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted

Recent News

Instructions for receiving pension through VNeID without going to the ward

Instructions for receiving pension through VNeID without going to the ward

October 16, 2026
MBTI, Big Five, DISC or Holland: which personality test should you choose?

MBTI, Big Five, DISC or Holland: which personality test should you choose?

October 15, 2026
How to create a virtual Pet, a virtual character running around on the Desktop to relax

How to create a virtual Pet, a virtual character running around on the Desktop to relax

October 15, 2026
Record first, choose focus later: how to use 4K 60 fps Cinema mode on iPhone 18 Pro

Record first, choose focus later: how to use 4K 60 fps Cinema mode on iPhone 18 Pro

October 15, 2026
Instructions for receiving pension through VNeID without going to the ward

Instructions for receiving pension through VNeID without going to the ward

October 16, 2026
MBTI, Big Five, DISC or Holland: which personality test should you choose?

MBTI, Big Five, DISC or Holland: which personality test should you choose?

October 15, 2026
How to create a virtual Pet, a virtual character running around on the Desktop to relax

How to create a virtual Pet, a virtual character running around on the Desktop to relax

October 15, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

Instructions for receiving pension through VNeID without going to the ward

Instructions for receiving pension through VNeID without going to the ward

October 16, 2026
MBTI, Big Five, DISC or Holland: which personality test should you choose?

MBTI, Big Five, DISC or Holland: which personality test should you choose?

October 15, 2026
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

say88 tỷ lệ kèo nhà cái kèo nhà cái 5 febet

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply