I study in a course and just don't understand one of the solutions of a task (though I get the concept of the formulas).
I have 3 sheets: 1) a raw data table with sales data: columns of Product ID, Price, Quantity, etc but I have to cleanse the data so I can use it properly for calculations, so I have to consolidate into 2) another sheet which contains the clean data, same columns and 3) i have a data lookup with a sum of Product IDs, Product descriptions, quantity, price, etc (this is the summary sheet of product types).
Problem: in 1) raw data sheet, in the Product ID column in some cells there are Product IDs written, however in many cells the PRoduct descriptions are written, so it is messed up, and now I want to consolidate in sheet 2) using IFERROR & VLOOKUP from sheet 3)
The solution is that I look for the value in sheet 1), from the range of sheet 3), and pick the Product ID column as I want to have the proper Product IDs in sheet 2). However, when I want to copy down, I need IFERROR, so when it is a product description it looks up that value. The official solution looks like this: =IFERROR(VLOOKUP(Data_Set_Raw!E8;Data_Lookup_Ans!$C$14:$J$25;1;FALSE);VLOOKUP(Data_Set_Raw!E8;Data_Lookup_Ans!$D$14:$J$25;7;FALSE)) - check Data_Set_Clean_Ans sheet F9
In the second vlookup, on sheet 3) the Product ID column was duplicated, and referenced as column 7, however the same values are in column 7 and 1 (that is in the first vlookup)
My question is why do I have to duplicate the Product ID column and cannot use the VLOOKUP simply as both the Product descriptions and the Product IDs can be found in the same table?
Solved by B. U. in 14 mins