Is it possible to nest more than 64 in one command?

HeRoseInThree

Board Regular
Joined
Jan 11, 2018
Messages
103
I have a LARGE nested formula. it works great, except I need it to be bigger.

=IF(AA4=AD16,AB4,IF(AA5=AD16,AB5,IF(AA6=AD16,AB6,IF(AA7=AD16,AB7,IF(AA8=AD16,AB8,IF(AA9=AD16,AB9,IF(AA10=AD16,AB10,IF(AA11=AD16,AB11,IF(AA12=AD16,AB12,0)))))))))))))

I need it to be up to 99. Is there a way???

Thanks so much!!!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Nesting IFs so deep is almost NEVER the best way to do things. You should look at the LOOKUP type functions. Your formula can be rewritten as:

=VLOOKUP(AD16,$AA$4:$AB$99,2,0)

Much shorter!
 
Upvote 0
Nesting IFs so deep is almost NEVER the best way to do things. You should look at the LOOKUP type functions. Your formula can be rewritten as:

=VLOOKUP(AD16,$AA$4:$AB$99,2,0)

Much shorter!


HOLY CRAP! I really LOVE the vlookup formula - no idea why I didn't think of it!

THANK YOU SO MUCH!!!!!!!!!!!
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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