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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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