Calculating remaining days in a month

Blue Brother

New Member
Joined
Feb 11, 2003
Messages
33
I need to create a forumla to work out the number of days remaining in a month. If the date in cell A1 was 5/1/03, it would return 26 because there are 31 days in January. Thanks in advance for any help.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
This EOMONTH function doesn't work on my machine but this formula does:

=("01/0"&MONTH(A1)+1&"/"&YEAR(A1))-A1-1

Format the cell as a number.

Robin
 
Upvote 0
Quote from Excel help on EOMONTH function:

If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in.

The Analysis ToolPak add-in should have come with your Excel. Many times, it is already installed and just needs to be selected from the Tools | Add-Ins menu.

There are many other useful function in this add-in.
 
Upvote 0
EOMONTH belongs to analysis toolpack.

There is no excuse for not having that enabled. :devilish:

Look in the help file for how to install and enable.
 
Upvote 0

Forum statistics

Threads
1,214,397
Messages
6,119,271
Members
448,882
Latest member
Lorie1693

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