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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

saon

New Member
Joined
Aug 7, 2002
Messages
16
hi

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

=12 - MONTH(A1)
 

inspin

New Member
Joined
Oct 29, 2002
Messages
24
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
 

Forum statistics

Threads
1,144,274
Messages
5,723,442
Members
422,497
Latest member
dougy99

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