Nested Functions

B

Bryan Potter

Is there any way to bypass the limit of 7 nested functions?

The following formula should return the value in 1 of 12 columns based on
the month that is selected from a drop down menu. However, the limitation of
7 nested functions does not allow it to work? Any ideas how go about this a
different way?

=IF('Report Parameters'!$E$5 = "January", 'Stats and Forecasts - 351'!B48,
IF('Report Parameters'!$E$5 = "February", 'Stats and Forecasts - 351'!E48,
IF('Report Parameters'!$E$5 = "March", 'Stats and Forecasts - 351'!H48,
IF('Report Parameters'!$E$5 = "April", 'Stats and Forecasts - 351'!K48,
IF('Report Parameters'!$E$5 = "May", 'Stats and Forecasts - 351'!N48,
IF('Report Parameters'!$E$5 = "June", 'Stats and Forecasts - 351'!Q48,
IF('Report Parameters'!$E$5 = "July", 'Stats and Forecasts - 351'!T48,
IF('Report Parameters'!$E$5 = "August", 'Stats and Forecasts - 351'!W48),
IF('Report Parameters'!$E$5 = "September", 'Stats and Forecasts - 351'!Z48,
IF('Report Parameters'!$E$5 = "October", 'Stats and Forecasts - 351'!AC48,
IF('Report Parameters'!$E$5 = "November", 'Stats and Forecasts - 351'!AF48,
IF('Report Parameters'!$E$5 = "December", 'Stats and Forecasts -
351'!AI48)))))))))))

Thanks,

Bryan
 
T

Toppers

An alternative .... complete the list of months im MATCH statement

=OFFSET('Stats and Forecasts - 351'!$B$48,0,(MATCH('Report
Parameters'!$E$5,{"January","February","March"},0)-1)*3)

Both solutions assume E5 contains a valid month
 
T

Toppers

Bryan,
What is (are) the range(s) of data you are looking at? It
may be possible to use the OFFSET solution I offered.
 
B

Bryan Potter

I did consider using a VLOOKUP function, however the formula needs to account
for relative cell references as it needs to be applied to numerous rows of
data.

Any alternatives (preferably avoiding the creation of a VLOOKUP
classification table for each row of data)?

Thanks,

Bryan
 
B

Bryan Potter

I did consider using the VLOOKUP function, however the formula needs to
account for relative cell references as it needs to be applied to a number of
cells in each column.

Any alternatives (preferably avoiding creating a VLOOKUP classification
table for each row of data)?

Thanks,

Bryan
 
B

Bryan Potter

The data is contained in the range B48:AK81.
Each month is assigned three columns of data.
Each column has 34 rows of data.

The formula needs to be able to copy the data into a worksheet based on the
selection of the desired month from a drop down menu.
 
T

Toppers

Have a look at the OFFSET solution to see if you can add a calculation for
row (and/or) column to take account of the month selected. It's hard (for
me!) to work these out if I havn't the data in front of me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top