Nested if formula very long

nplano1

New Member
Joined
Sep 6, 2014
Messages
22
I have a nested if formula that is extremely long any ideas on how I can shorten it and still have it function properly?
because I have to do this 576 times

=IF(AG443=$AI$3,$AJ$3,IF(AG443=$AI$4,$AJ$4,IF(AG443=$AI$5,$AJ$5,IF(AG443=$AI$6,$AJ$6,IF(AG443=$AI$7,$AJ$7,IF(AG443=$AI$8,$AJ$8,IF(AG443=$AI$9,$AJ$9,IF(AG443=$AI$10,$AJ$10,IF(AG443=$AI$11,$AJ$11,IF(AG443=$AI$12,$AJ$12,IF(AG443=$AI$13,$AJ$13,IF(AG443=$AI$14,$AJ$14,IF(AG443=$AI$15,$AJ$15,IF(AG443=$AI$16,$AJ$16,IF(AG443=$AI$17,$AJ$17,IF(AG443=$AI$18,$AJ$18,IF(AG443=$AI$19,$AJ$19,IF(AG443=$AI$20,$AJ$20,IF(AG443=$AI$21,$AJ$21,IF(AG443=$AI$22,AJ$22,IF(AG443=0,"")))))))))))))))))))))
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Thank you that worked great, I have just started to learn about Index and match and this is perfect.
Thanks agan
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,432
Members
448,961
Latest member
nzskater

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