Simple (I hope) date formula needed

derekpegg

Board Regular
Joined
Oct 7, 2005
Messages
145
I need a formula to calculate the number of days between NOW() and the first day of the next month, ie, 01/12/05 = 1 day, today. Is there a way to have excel do this as months vary in length. Thanks in advance.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Thanks for the speedy reply, but that formula returns a #NAME?. I think this requires an add-in. The problem is that other users will be using this workbook who do not have the add-in, as I guess it is machine specific and not packaged into the worksheet?
 
Upvote 0
EOMONTH belongs to analysis tool pack. It is included in the normal Excel instalation but you need to enable it (Tools - add-ins...)


Alternatively:

=DATE(YEAR(TODAY()),MONTH(TODAY())+1,1)-TODAY()

does not requre analysis tool pack.
 
Upvote 0

Forum statistics

Threads
1,206,754
Messages
6,074,750
Members
446,083
Latest member
kfunt

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