Finding values using 2 cells as criteria searching through multiple sheets

NSegna

New Member
Joined
May 30, 2019
Messages
11
Hello,
I was wondering if there is a function that can help me out with the following,

ItemStorePrice
T-shirtAmerican Eagle
ShortsGap
SneakersAdidas
JeansLevis
PoloCalvin Klein
JerseyNike
Sheet 1


<colgroup><col width="65" style="width: 65pt;"><col width="92" style="width: 92pt;"><col width="65" style="width: 65pt;"></colgroup><tbody>
</tbody>
ShirtsAmerican EagleGapNikeCalvin Klein
T-shirt8101520
Long sleeve12131530
Polo15252535
Dress3030050
Button-up2025045
Jersey00600
Graphic15152020

<colgroup><col width="65" span="5" style="width: 65pt;"></colgroup><tbody>
</tbody>
Sheet 2

PantsGapLevisJack & Jones
Shorts202530
Jeans354550
Joggers03530
Dress607075

<colgroup><col width="65" span="4" style="width: 65pt;"></colgroup><tbody>
</tbody>
Sheet 3

ShoesAdidasAldoReebokNike
Sneaker6004550
Running55403545
Hi-Top900075
Dress010000

<colgroup><col width="65" span="5" style="width: 65pt;"></colgroup><tbody>
</tbody>
Sheet 4

I was wondering if there is a formula to enter in cell C2 that can look at the values in A2 and B2 and then find the sheet that has both values in it and use A2 to find the row and B2 to find the column and then put the corresponding price in the C2 cell.

If possible please give a formula rather than a macro/VBA.

Thank you in advance.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

This worked for me;


  1. Select a cell from Shirts & convert to a table with CTRL-T
  2. While the table is highlighted give the table a named range called Shirts
  3. Then Highlight the whole header row for Shirts, the create named range called shirtsheading
  4. Repeat above for Shoes/Shoesheading & Pants/Pantsheading

This will be dynamic and you'll be able to add rows and columns to each of your tables without updating your vlookup;


Book1
ABCDE
2ItemSourceSource2StorePrice
3T-shirtShirtsShirtsHeadingAmerican Eagle8
4ShortsPantsPantsHeadingGap20
5SneakersShoesShoesHeadingAdidas60
6JeansPantsPantsHeadingLevis45
7PoloShirtsShirtsHeadingCalvin Klein35
8JerseyShirtsShirtsHeadingNike60
Sheet1
Cell Formulas
RangeFormula
C3=B3&"Heading"
E3=VLOOKUP(A3,INDIRECT(B3),MATCH(D3,INDIRECT(C3),0),0)
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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