I am trying to look up two criteria in my vlookup and/or index match. Doesn't matter to me which one to use as I am having issues with both.
One of the criteria I am searching for is a wildcard match. I need to search for criteria in the middle of not in the beginning or end of.
So for instance, here is my sample. The first snapshot is my existing Pivot Table
Invoice/WO ID and Line ItemINV AMTWO AMT
Network Company
Site 1
EF-Power$550.00$550.00
EF-Cable$5,250.00$5,250.00
EF-Tray$5,250.00$5,250.00
Site 1 Total$11,050.00$11,050.00
Site 2
EF-Power$659.93$659.93
EF-Cable$659.93$659.93
EF-Tray$1,530.00$1,575.00
Site 2 Total$2,849.86$2,894.86
The second snapshot is my other existing Pivot Table:
PO ID and Line ItemPO AMT
Site 1
Task 1 EF-Power-T03$550.00
Task 2 EF Cable-T04$5,250.00
Task 3 EF Tray-T05$5,250.00
Site 2
Task 1 EF-Power-T03$659.93
Task 2 EF Cable-T04$659.93
Task 3 EF Tray-T05
$1,575.00
In the first pivot table I want to add a column and pull the data over from the second pivot table. The two formulas I am using is as follows:
=VLOOKUP("*"&A4&"*"&A3,$A$4:B1000,2,0)
So I am trying to pull the PO AMT in the second pivot table for "Site 1" and "EF-Power". Site 1 (A3) will be an exact match however, EF-Power (A4) will not be an exact match. So want to use a wildcard.
The index match formula is:
=INDEX($F$4:$G$10000,MATCH($A3,$F$4:$F$10000,0),MATCH("*"&$A4&"*",$F$4:$F$10000,0))
Both pivot tables are in the same sheet. Some of the line items in the second pivot table may or may not have a hyphen (-) in the wording as well. The word I am looking for in each site # may be in front, in the end, or in the middle. I added the wildcard to the front and back of A4. I tried in front and the end but neither worked (A4&"*") and ("*"&$A4)
I have attached a snapshot of the spreadsheet in case I didn't match up the cells properly in the above formulas.
Of course this is a made up sample of the real spreadsheet.
Thank you so much for your help.
One of the criteria I am searching for is a wildcard match. I need to search for criteria in the middle of not in the beginning or end of.
So for instance, here is my sample. The first snapshot is my existing Pivot Table
Invoice/WO ID and Line ItemINV AMTWO AMT
Network Company
Site 1
EF-Power$550.00$550.00
EF-Cable$5,250.00$5,250.00
EF-Tray$5,250.00$5,250.00
Site 1 Total$11,050.00$11,050.00
Site 2
EF-Power$659.93$659.93
EF-Cable$659.93$659.93
EF-Tray$1,530.00$1,575.00
Site 2 Total$2,849.86$2,894.86
The second snapshot is my other existing Pivot Table:
PO ID and Line ItemPO AMT
Site 1
Task 1 EF-Power-T03$550.00
Task 2 EF Cable-T04$5,250.00
Task 3 EF Tray-T05$5,250.00
Site 2
Task 1 EF-Power-T03$659.93
Task 2 EF Cable-T04$659.93
Task 3 EF Tray-T05
$1,575.00
In the first pivot table I want to add a column and pull the data over from the second pivot table. The two formulas I am using is as follows:
=VLOOKUP("*"&A4&"*"&A3,$A$4:B1000,2,0)
So I am trying to pull the PO AMT in the second pivot table for "Site 1" and "EF-Power". Site 1 (A3) will be an exact match however, EF-Power (A4) will not be an exact match. So want to use a wildcard.
The index match formula is:
=INDEX($F$4:$G$10000,MATCH($A3,$F$4:$F$10000,0),MATCH("*"&$A4&"*",$F$4:$F$10000,0))
Both pivot tables are in the same sheet. Some of the line items in the second pivot table may or may not have a hyphen (-) in the wording as well. The word I am looking for in each site # may be in front, in the end, or in the middle. I added the wildcard to the front and back of A4. I tried in front and the end but neither worked (A4&"*") and ("*"&$A4)
I have attached a snapshot of the spreadsheet in case I didn't match up the cells properly in the above formulas.
Of course this is a made up sample of the real spreadsheet.
Thank you so much for your help.