Vlookup using two different lookup values on the same worksheet

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
698
Office Version
  1. 2010
Platform
  1. Windows
Hi:

I'm trying to do VLOOKUP using two lookup values on the same worksheet (lookup value E2 and AY2 are on the same worksheet).

If lookup value in E2 and AY2 are not found in A:A, I want Excel to return error do I can correct them.

=if(VLOOKUP(E2,Sheet1!A:A,1,0, IF(VLOOKUP(Master List'!AY2,Sheet1!A:A,1,0))

Excel's error message, there is problem with formula.

Could you help please?


Regards,

Sean
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
for a start, you have not closed the 1st vlookup...
=if(VLOOKUP(E2,Sheet1!A:A,1,0), IF(VLOOKUP(Master List'!AY2,Sheet1!A:A,1,0))

2nd, try this instead...
=iferror(VLOOKUP(E2,Sheet1!A:A,1,0),VLOOKUP(Master List'!AY2,Sheet1!A:A,1,0))
 
Upvote 0
This also can..

=IF(AND(IFERROR(IF(VLOOKUP($E:$E,$A:$A,1,0)=0, 1, VLOOKUP($E:$E,$A:$A,1,0)), 0)=0, IFERROR(IF(VLOOKUP($AY:$AY,$A:$A,1,0)=0, 1, VLOOKUP($AY:$AY,$A:$A,1,0)), 0)=0), "not found", "found")
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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