I'm trying to "translate" a spreadsheet from Google Sheets to Excel. Basically the spreadsheet has two tabs:
Tab "raw data" contains rows of inventory info. e.g. Item #, Qty on Hand, Qty on Order, Color, and other specs.
Tab 1 is where you type in a list of item #'s, and the arrayformula grabs all of the corresponding info that matches Item # from "raw data".
This works in Google:
=IFERROR(IF(ROW(A2:A)=1,"",VLOOKUP(A2:A,'raw data'!A:M,{3,4,5,6,7,8,9,10,11,12,13},FALSE)),"")
This returns columns 3 to 13 from the "raw data" tab for each row that matches the Item #'s I type in on Tab 1.
In Excel, I had to change it a bit:
{=IFERROR(IF(ROW(A2:A100)=1,"",VLOOKUP(A2:A100,'raw data'!A1:M25000,{3,4,5,6,7,8,9,10,11,12,13},FALSE)),"")}
But it doesn't work correctly. It correctly grabs the matching value from column 3 but then just repeats it across.
For example, if I type in Item # "ABC-001" in tab 1, and the matching data should be:
column 3: on hand = 12 pcs
column 4: on order = 20 pcs
column 5: color = green
etc.
It'll just return 12 12 12, instead of 12 20 green.
Does that make sense? What do I need to do to make this work correctly in Excel?
Tab "raw data" contains rows of inventory info. e.g. Item #, Qty on Hand, Qty on Order, Color, and other specs.
Tab 1 is where you type in a list of item #'s, and the arrayformula grabs all of the corresponding info that matches Item # from "raw data".
This works in Google:
=IFERROR(IF(ROW(A2:A)=1,"",VLOOKUP(A2:A,'raw data'!A:M,{3,4,5,6,7,8,9,10,11,12,13},FALSE)),"")
This returns columns 3 to 13 from the "raw data" tab for each row that matches the Item #'s I type in on Tab 1.
In Excel, I had to change it a bit:
{=IFERROR(IF(ROW(A2:A100)=1,"",VLOOKUP(A2:A100,'raw data'!A1:M25000,{3,4,5,6,7,8,9,10,11,12,13},FALSE)),"")}
But it doesn't work correctly. It correctly grabs the matching value from column 3 but then just repeats it across.
For example, if I type in Item # "ABC-001" in tab 1, and the matching data should be:
column 3: on hand = 12 pcs
column 4: on order = 20 pcs
column 5: color = green
etc.
It'll just return 12 12 12, instead of 12 20 green.
Does that make sense? What do I need to do to make this work correctly in Excel?