Question

I have 2 Spreadsheets. The first spreadsheet is the master price file, the second sheet is a subset of those same parts.

Master Price File
Subset from Master Price File

The two linked spreadsheets are the two i'm working on. In the second file (subset) I need cell U2 through U148 to equal cell U2 through U7835 in the master price file but only WHEN S2 through S148 in the subset equals S2 through S7835 in the master file.

So to sum it up, cell U2 (in the subset) needs to be populated WHEN s2 in the subset = any cell in the S column from the master file, make U2 (in the subset) equal to the U (whatever row number was matched in the S column from the master file).

If that makes sense to anybody, can you tell me if it is possible?

Was it helpful?

Solution

=IF(ISNA(VLOOKUP(S148,[rotaryWeb.xlsx]Sheet1!$S$2:$S$7835,1,FALSE))=FALSE,VLOOKUP(S148,[rotaryWeb.xlsx]Sheet1!$S$1:$U$7835,3,FALSE),"")

Your first VLOOKUP only needs column S to check that the value exists.

The 2nd need columns S and U so it can find the SKU value and get the price for the row.

The 3rd parameter for the result column need to be 3 in this formula because the price is the 3rd column in the look up fields. You need to use the ISNA() function to test for SKUs that were not found and show "", Otherwise it will show "#N/A"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top