Index match on multiple criteria with multiple sheets

amjadas1987

New Member
Joined
Mar 23, 2018
Messages
3
i have a workbook with 4 sheets 1st three are Jan, Feb, Mar and 4th one is home. Columns are style no., qty and unit price. i want to check index match the unit price of mentioned style number from all three sheets. Like i want a formula in HOME sheet in cell C2 which see style no. in cell A2 and then check it's unit price in all three sheets and put unit price of matched style no.

Three sheets Jan, Feb, Mar are like this.
Style No.QtyUnit Price
WTC12345645645,000
WTB281654100065,000

<tbody>
</tbody>

HOME Sheet.
Style No.QtyUnit Price
WTC123456456here i want formula
WTB2816541000

<tbody>
</tbody>

because some styles are put in Jan and some are in Feb so on. but home sheet has all the styles no.

Thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hello,

Formula as below:
=IFERROR(VLOOKUP(A2,Jan!$A$2:$C$5,3,FALSE),IFERROR(VLOOKUP(A2,Feb!$A$2:$C$5,3,FALSE),VLOOKUP(A2,Mar!$A$2:$C$5,3,FALSE)))

Explanation
=IFERROR(VLOOKUP([Style Number],[TabName]![Range in tab names],[Unit Price],FALSE),IFERROR(VLOOKUP(A2,Feb!$A$2:$C$5,3,FALSE),VLOOKUP(A2,Mar!$A$2:$C$5,3,FALSE)))

This formula checks Jan tab, then Feb Tab then March tab.
 
Upvote 0
Thanks for your great reply but with apologize i already doing it with vlookup but vlookup is slow and can see only right side. i would you like to ask why we cannot do it with the use of Index and Match only like if i use it for only one tab it works great but i am not understanding how to make it for all 12 months (12 sheets).

Formula:
=INDEX(Jan!D2:D31,MATCH(A2,Jan!B2:B31,0))
Explaination:
=INDEX(Jan![UnitPrice],MATCH([Style No.],Jan![Style No.],0))

12 months 12 sheets pattern

PO No. Style No. Qty Unit Price
4600000348 WTB181693 470 51.00
4600000310 WTB371652 347 59.10
4600000298 WTB371652 350 59.10
4600000358 WTC181281 688 213.00
4600000392 WTC181275 300 41.75
4600000415 WTC181304 200 64.60



Home Sheets Pattern

Style No. Qty. Unit Price
WTB181693 670 51.00 [Here my above formula is working perfect but only for one sheet]
WTB371652 697 [Here need same formula but search in all 12 sheets] [i also created 12 months list with "months"]
WTC181281 888
WTC181275 794
WTC181304 786

hope now you can understand me properly.

Thanks
 
Upvote 0
This can be done in the same way.

I have done this up to May, but you should be able to work out how to add the rest of the year

=IFERROR(INDEX(Jan!$C$2:$C$31,MATCH(Home!A2,Jan!$A$2:$A$31,0)),IFERROR(INDEX(Feb!$C$2:$C$31,MATCH(Home!A2,Feb!$A$2:$A$31,0)),IFERROR(INDEX(Mar!$C$2:$C$31,MATCH(Home!A2,Mar!$A$2:$A$31,0)),IFERROR(INDEX(Apr!$C$2:$C$31,MATCH(Home!A2,Apr!$A$2:$A$31,0)),INDEX(May!$C$2:$C$31,MATCH(Home!A2,May!$A$2:$A$31,0))))))
 
Upvote 0
ok thanx for reply but fomula is too long

i am using this formula to summing Qty of all 12 sheets

=SUMPRODUCT(SUMIF(INDIRECT("'"&months&"'!$C$6:$C$31"),B18,INDIRECT("'"&months&"'!$D$6:$D$31")))

i created a list of all tabs name and gave it a name "months" and formula is working good

why we cannot use this "months" a list name of 12 months sheet for index match. hope you will do it.
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,381
Members
448,888
Latest member
Arle8907

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