How to use Date function in real life

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
I want to know what Date() function is used for really in real life? I just read the website below and it does not make sense people put year, month, and day in different columns and expect someone to use date() function to combine them. It must be used more than that. Thank you.

 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Date function can be used with other functions to convert any value in Date format. Sometimes we export data from an application and the date mentioned is not as per required format (mm/dd/yyyy) hence we can use Date function to convert into proper format in excel. (Check screenshot)

Check more examples here:

Book1
ABCD
1CommentsDate when comment madeIn Date FormatAgeing
224-01-2020 17:36:31 NZDT -24-01-202001/24/2020341
323-02-2021 15:29:25 NZDT -23-02-202102/23/202159
421-01-2020 16:44:54 NZDT -21-01-202001/21/2020344
524-05-2020 14:13:03 NZDT -24-05-202005/24/2020255
623-07-2020 16:36:33 NZDT -23-07-202007/23/2020212
727-11-2020 18:12:56 NZDT -27-11-202011/27/2020121
824-01-2020 18:30:03 NZDT -24-01-202001/24/2020341
928-09-2020 16:49:09 NZDT -28-09-202009/28/2020165
1022-12-2020 12:44:40 NZDT -22-12-202012/22/2020104
Sheet1
Cell Formulas
RangeFormula
B2:B10B2=LEFT(A2,10)
C2:C10C2=DATE(MID(A2,7,4),MID(A2,4,2),LEFT(A2,2))
D2:D10D2=NETWORKDAYS(C2,TODAY())
 
Upvote 0
I want to know what Date() function is used for really in real life?
You can use it when you want to to increment or decrement by either Year, Month or day, for example in the below where we are calculating the number of absent dates in a rolling year.

Book3
ABC
1Days AbsentDateRolling
2201/01/20102
3302/02/20105
4403/03/20109
5207/06/201011
6310/11/201014
7431/12/201018
8601/01/201124
9202/02/201124
10103/03/201122
11307/06/201121
12510/11/201124
13201/01/201219
14317/01/201216
Sheet1
Cell Formulas
RangeFormula
C2:C14C2=SUMIFS($A$2:$A$14,$B$2:$B$14,"<="&B2,$B$2:$B$14,">="&DATE(YEAR(B2)-1,MONTH(B2),DAY(B2)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top