Date as a number

msword

New Member
Joined
Oct 23, 2020
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
I found that TODAY() function shows current date that is updated automatically. The problem is that I can not use current date number for calculations in another formulas. Obviously, changing date's format to custom just visually shows the number I need, but still it can not be used in calculations. To be clear, I need that "July 14" would be displayed as just "14" in number format. Is there any way to do that?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

arthurbr

Well-known Member
Joined
Dec 8, 2006
Messages
2,316
Office Version
  1. 2010
Hi
your explanation is not clear. Applying the "d" format will return the date number (14) but will not change the underlying value. If you need to extract the day, use the DAY() function
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
37,553
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I am not completely clear on what your need is, but perhaps DAY(TODAY()) will do it.

EDIT NOTE: I see arthurbr had the same problem understanding exactly what you need and came up with the same suggestion.
 
Solution

msword

New Member
Joined
Oct 23, 2020
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Thank you both for quick response. You answered exactly what I was asking for.
 

msword

New Member
Joined
Oct 23, 2020
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
How to calculate working days, not for the whole month, but until this very day?
Something like
=NETWORKDAYS(DAY(TODAY()))
isn't working.
 
Last edited:

msword

New Member
Joined
Oct 23, 2020
Messages
11
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Found a solution by myself, but can not delete previous post, so here it is:
=NETWORKDAYS(first date cell, TODAY())
 

Forum statistics

Threads
1,148,172
Messages
5,745,176
Members
423,931
Latest member
thangvan114

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
Top