Month Formulas

ballgame66

New Member
Joined
May 22, 2002
Messages
7
I am trying to program a cell to return the number of months left in a year, based on a certain date.

For example: assume cell A1 contains "Oct-02"

I want to set up cell B1 to return "2" by using a formula that references cell A1.

Thanks for any suggestions!!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
hi

set format property of B1 as "general".
in b1 enter the formula below

=12 - MONTH(A1)
 
Upvote 0
right click on cell a1 go to format cells select date, and then pick the format you want

then in b1 type "=a1" no quotes
right click on it go to format, pick custom and put= "mm" no quotes

there you go

post back if this doesnt work out
 
Upvote 0

Forum statistics

Threads
1,214,432
Messages
6,119,468
Members
448,900
Latest member
Fairooza

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