scottlarock
Board Regular
- Joined
- Apr 10, 2009
- Messages
- 102
Hi everyone,
I have 6 columns, side by side, with a product family in each, and this data is listed down a range of rows.
I need to see if one of the 6 possible product families alongside each row is found within a different single column on another sheet (there may be more than one TRUE statements but returning the first matching product Family is sufficient in that case).
I was able to manage this but I had to break the formula down into 7 parts, which weighs a ton in my already very heavy workbook.
Basically I added helper columns (from H to M) where each column represents 1 of the 6 possible product families (from A6:A10000 to F6:F10000), in order to return a TRUE if one of the product families was found in the different single column
Formula in H6=IF(ISERROR(MATCH(A6,All_Product_Families,0)),FALSE,TRUE))
Formula in I6=IF(ISERROR(MATCH(B6,All_Product_Families,0)),FALSE,TRUE))
Formula in J6=IF(ISERROR(MATCH(C6,All_Product_Families,0)),FALSE,TRUE))
Formula in K6=IF(ISERROR(MATCH(D6,All_Product_Families,0)),FALSE,TRUE))
Formula in L6=IF(ISERROR(MATCH(E6,All_Product_Families,0)),FALSE,TRUE))
Formula in M6=IF(ISERROR(MATCH(F6,All_Product_Families,0)),FALSE,TRUE))
And then I add the 7th helper column to return the product family number listed in H1:M1 (result would be from 1 to 6), where A1=H1=1; B1=I1=2; C1=J1=3; D1=K1=4; E1=L1=5; F1=M1=6
Formula in G6=INDEX($H$1:$M$1,MATCH(TRUE,H6:M6,0))
This adds 6 significant lookups + the 7th easy lookup... but I NEED to simplify this into a single lookup otherwise nobody will be able to use this file as it is too darn heavy...
Tons of thanks in advance for your strong support !
I have 6 columns, side by side, with a product family in each, and this data is listed down a range of rows.
I need to see if one of the 6 possible product families alongside each row is found within a different single column on another sheet (there may be more than one TRUE statements but returning the first matching product Family is sufficient in that case).
I was able to manage this but I had to break the formula down into 7 parts, which weighs a ton in my already very heavy workbook.
Basically I added helper columns (from H to M) where each column represents 1 of the 6 possible product families (from A6:A10000 to F6:F10000), in order to return a TRUE if one of the product families was found in the different single column
Formula in H6=IF(ISERROR(MATCH(A6,All_Product_Families,0)),FALSE,TRUE))
Formula in I6=IF(ISERROR(MATCH(B6,All_Product_Families,0)),FALSE,TRUE))
Formula in J6=IF(ISERROR(MATCH(C6,All_Product_Families,0)),FALSE,TRUE))
Formula in K6=IF(ISERROR(MATCH(D6,All_Product_Families,0)),FALSE,TRUE))
Formula in L6=IF(ISERROR(MATCH(E6,All_Product_Families,0)),FALSE,TRUE))
Formula in M6=IF(ISERROR(MATCH(F6,All_Product_Families,0)),FALSE,TRUE))
And then I add the 7th helper column to return the product family number listed in H1:M1 (result would be from 1 to 6), where A1=H1=1; B1=I1=2; C1=J1=3; D1=K1=4; E1=L1=5; F1=M1=6
Formula in G6=INDEX($H$1:$M$1,MATCH(TRUE,H6:M6,0))
This adds 6 significant lookups + the 7th easy lookup... but I NEED to simplify this into a single lookup otherwise nobody will be able to use this file as it is too darn heavy...
Tons of thanks in advance for your strong support !