Nesting

DStan

New Member
Joined
Mar 12, 2002
Messages
6
Is there any way around the 7 level limit in nesting? My formula is =IF(D1=1,"JULY",IF(D1=2,"AUGUST",IF(D1=3,"SEPTEMBER",IF(D1=4,"OCTOBER",IF(D1=5,"NOVEMBER",IF(D1=6,"DECEMBER",IF(D1=7,"JANUARY",IF(D1=8,"FEBUARY",))))))))
I would like to finish rest of months. This formula is necessary because we are on fiscal year instead of calendar year.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Use the CHOOSE worksheet function...

=CHOOSE(D1,"JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER","JANUARY","FEBUARY","MARCH","APRIL","MAY","JUNE")
This message was edited by Mark W. on 2002-03-13 12:59
 
Upvote 0
I believe VLOOKUP is also a popular suggestion. (I only use VBA so don't slap this suggestion too hard)
 
Upvote 0
Create a table of 1-12 and months

use formula such as =LOOKUP(B2,rMonth)

or use Vlookup(b2,rMonth,2)
 
Upvote 0

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,078
Latest member
skydd

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