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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
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,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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