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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

Mr Robin

New Member
Joined
Jan 14, 2004
Messages
22
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
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,755
Office Version
  1. 365
Platform
  1. Windows
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.
 

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638

ADVERTISEMENT

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.
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,561
Messages
5,765,113
Members
425,261
Latest member
JW00

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