Reverse Lookup Function Error

Simonc64

Active Member
Joined
Feb 15, 2007
Messages
251
Office Version
  1. 365
Hi All

I have just discovered this function and have used it successfully previously, but this has me stumped. It must be something to do with how the =IF(AND treats the LOOKUP function?

Assume all the statements in the IF statement are correct, AND that the lookup vale of "IN" exists in both the specified ranges AND the result equals the value in cell T14 - why does this formula return an "X" please. (I know why it does, but i wasnt expecting the formula to fail before this point)

=IF(AND(U14="even",Z14="Y",LOOKUP(2,1/($AK$2:$AK$12="IN"),$AJ$2:$AJ$12))=T14,VLOOKUP("IN",$AK$2:$AL$12,2,0),"X")

Thanks in advance!

Simon
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
You have the closing bracket for the AND in the wrong place. It should be
Excel Formula:
=IF(AND(U14="even",Z14="Y",LOOKUP(2,1/($AK$2:$AK$12="IN"),$AJ$2:$AJ$12)=T14),VLOOKUP("IN",$AK$2:$AL$12,2,0),"X")
 
Upvote 0
You have the closing bracket for the AND in the wrong place. It should be
Excel Formula:
=IF(AND(U14="even",Z14="Y",LOOKUP(2,1/($AK$2:$AK$12="IN"),$AJ$2:$AJ$12)=T14),VLOOKUP("IN",$AK$2:$AL$12,2,0),"X")
Thanks fluff, much appreciated, and so emabarrassingly simple! Been looking at too long i think! thanks again!
 
Upvote 0
Glad to help & thansk for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,329
Members
452,635
Latest member
laura12345

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