I think an =IF(AND will work but I'm not sure

mikeniedert

New Member
Joined
Aug 4, 2017
Messages
6
I have a worksheet that will be used to forecast annual costs for contracts of various term lengths. In my cell C9 I enter in the number of months in the contract term (i.e., 24). This number is variable depending on the term length of the contract. I'd like a formula I can use put in C39, D39, E39, etc. that would display "Year 1", "Year 2", "Year 3", and etc. and then at the end display "Total"

So for example if cell C9 has 28 (for a contract that is 2 years and 4 months)...cell C39 would show "Year 1", Cell D39, would show "Year 2" and cell E39, would show "Year 3" and cell F39 would show "Total". If cell C9 is 12, then C39 would show "Year 1" and cell D39 would show "Total"

Thanks in advance for the help.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
=IF(COLUMN()-2<=ROUNDUP($C$9/12,0),"Year "&COLUMN()-2,IF(COLUMN()-2=ROUNDUP($C$9/12,0)+1,"Total",""))
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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