VLOOKUP 2 ranges

PartsPig

New Member
Joined
Sep 13, 2024
Messages
40
Office Version
  1. 365
Platform
  1. Windows
I have 2 sheets exactly the same except for the title's. One tracks written checks and the other credit card usage. My input from left to right is Payee, date(autofills), Job number, invoice number, customer name, customer detail. I currently use VLookup to populate the last two columns based on the job number. Each sheet only looks at the range of itself however I would like them to look at the range of each other as well. Is this possible?

Current VLookup: =IF([@[RO '#]]<>"",IF(ISNUMBER([@[RO '#]]),VLOOKUP([@[RO '#]],E7958:H9959,3,FALSE),[@[RO '#]]),"")

RO is job number.
First it is confirming the RO is populated (not null) then confirming it is a number (if it is letters then I just populate these cells with the text) and if those pass then it will search for a match in the range.
Range is E:H (I currently have it looking at the last 2000 lines to find a match but it can look at all lines if necessary).
I have tried using range {E7958:H9959,'CC Tracking'!E:H} and {E:H,'CC Tracking'!E:H} and {'Check Tracking'!E:H,'CC Tracking'!E:H} including the { } but it always give the error below and always highlights only the first part of the argument which I have emboldened above. I have clicked the Help button but didn't find anything useful there.

VLookup error.PNG


Is it possible to search 2 different ranges on 2 different sheets or am I wasting my time?
 
Gotcha but that is not the case...

Check Tracking sheet formula in cell G9971:
=IF([@[RO '#]]<>"",IF(ISNUMBER([@[RO '#]]),IFNA(VLOOKUP([@[RO '#]],VSTACK($E$3:$H9970,'CC Tracking'!$E$3:$H670),3,FALSE),"New Customer"),[@[RO '#]]),"")

CC Tracking sheet in cell G167:
=IF([@[RO '#]]<>"",IF(ISNUMBER([@[RO '#]]),IFNA(VLOOKUP([@[RO '#]],VSTACK('Check Tracking'!$E$3:$H15155,$E$3:$H166),3,FALSE),"New Customer"),[@[RO '#]]),"")

The same formulas are also in H beside the cells mentioned above but they return 4 instead of 3.
 
Upvote 0

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