A few years ago I created this formula in Excel 2003 using IF and OR.
It was used to get around the "only 7 ifs" thing (or whatever it was).
Anyway, it has served me well up to the 16th iteration. But I want to use it for 32.
I'm just totally unsure of what to do, but I'm led to believe that I can solve this problem with the IFS statement? Is that right?
Anyway, here is my formula:
=IF(OR(A!$D27=A!$F$7,A!I27=A!$F$7,A!D41=A!$F$7,A!I41=A!$F$7,A!D62=A!$F$7,A!I62=A!$F$7),IF(A!$D27=A!$F$7,A!$A$25,IF(A!I27=A!$F$7,A!$F$25,IF(A!D41=A!$F$7,A!$A$39,IF(A!I41=A!$F$7,A!$F$39,IF(A!D62=A!$F$7,A!$A$60,A!$F$60))))),IF(OR(A!D76=A!$F$7,A!I76=A!$F$7,A!D90=A!$F$7,A!I90=A!$F$7,A!D104=A!$F$7,A!I104=A!$F$7),IF(A!$D76=A!$F$7,A!$A$74,IF(A!$I76=A!$F$7,A!$F$74,IF(A!D90=A!$F$7,A!$A$88,IF(A!I90=A!$F$7,A!$F$88,IF(A!D104=A!$F$7,A!$A$102,A!$F$102))))),IF(OR(A!D124=A!$F$7,A!I124=A!$F$7,A!D138=A!$F$7,A!I138=A!$F$7),IF(A!D124=A!$F$7,A!$A$122,IF(A!$I124=A!$F$7,A!$F$122,IF(A!D138=A!$F$7,A!$A$136,IF(A!I138=A!$F$7,A!$F$136,"error")))))))
Yes, it took me ages!
What it does is:
It will output A!F7 if what is in sheet A at D27 is equal to A!F7, but if not then it will output A!D41 if it is equal to A!F7, but if not that then it will output A!I41 if it is equal to A!F7, but if not that then ...
Anyway, with this formula I can only get through 16 places I want to search. I now want 32.
Will the IFS statement be able to do this? Or do I just need to modify my formula?
Or is there a neater solution.
By the way, all of the dollar signs are there because I copy this formula to lots of different cells across the spreadsheet.
Any help would be greatly appreciated!
Bookmarks