Lookup at multiple sheets

nburaq

Board Regular
Joined
Apr 2, 2021
Messages
222
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi Gents,
I am trying to find the values matched in sheet2 and sheet3 for sheet1. if there is no match for sheet 1 the value will be N/A. I placed some values in sheet1 as samples. Itried to solve this with IF-XLOOKUP but it became very complicated. Thanks for your help and comments!

Book1
AB
1NoValue
2A12310
3A124
4A125
5A126
6A127
7A128
8B225
9B226
10B227
11C185
12C186
13C187
14D111N/A
Sheet1




Book1
AB
1NoPrice
2A12310
3A12415
4A12512
5D111
6D1128
7C18518
Sheet2


Book1
AB
1No Price
2A1274
3A12816
4C18622
5C1878
Sheet3
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You could do something like this:
Book1
AB
1NoValue
2A12310
3A12415
4A12512
5A126N/A
6A1274
7A12816
8B225N/A
9B226N/A
10B227N/A
11C18518
12C18622
13C1878
14D1110
Sheet1
Cell Formulas
RangeFormula
B2:B14B2=XLOOKUP(A2,Sheet2!$A$2:$A$100,Sheet2!$B$2:$B$100,XLOOKUP(A2,Sheet3!$A$2:$A$100,Sheet3!$B$2:$B$100,"N/A"))
 
Upvote 0
You could do something like this:
Book1
AB
1NoValue
2A12310
3A12415
4A12512
5A126N/A
6A1274
7A12816
8B225N/A
9B226N/A
10B227N/A
11C18518
12C18622
13C1878
14D1110
Sheet1
Cell Formulas
RangeFormula
B2:B14B2=XLOOKUP(A2,Sheet2!$A$2:$A$100,Sheet2!$B$2:$B$100,XLOOKUP(A2,Sheet3!$A$2:$A$100,Sheet3!$B$2:$B$100,"N/A"))
Yes, could be... but i just gave this as an example actual sheets are too many rows and i didnt want to change it. Of course, If I cant find any other solution I will use the way you solved. Thanks again
 
Upvote 0
I don't understand. My example set the ranges for matching as $A$2:$A$100 and for returning values as $B$2:$B$100. If your actual sheets have a much larger range, change these to cover the entire range. For example, if your sheets have 10,000 rows to search, beginning in row 10, then use $A$10:$A$11000 and $B$10:$B$11000 (note that I expanded the range by 1000 to account for some additional rows should the actual data ranges become somewhat longer).
 
Upvote 0
Solution
I don't understand. My example set the ranges for matching as $A$2:$A$100 and for returning values as $B$2:$B$100. If your actual sheets have a much larger range, change these to cover the entire range. For example, if your sheets have 10,000 rows to search, beginning in row 10, then use $A$10:$A$11000 and $B$10:$B$11000 (note that I expanded the range by 1000 to account for some additional rows should the actual data ranges become somewhat longer).
Sorry my bad you are right. Thanks again for the help
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,194
Members
452,616
Latest member
intern444

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