sharkey
New Member
=IFERROR(IF($E9="","",IF(AND(VLOOKUP($A9,PIVOTS.LOOKUPS!$BP:$BP,1,FALSE)=$A9,VLOOKUP($A9,PIVOTS.LOOKUPS!$BS:$BS,1,FALSE)=$A9),"DP & KM",IF(VLOOKUP($A9,PIVOTS.LOOKUPS!$BP:$BP,1,FALSE)=$A9,"CONVERT TO KM",IF(VLOOKUP($A9,PIVOTS.LOOKUPS!$BS:$BS,1,FALSE)=$A9,"CONVERT TO DP","")))),"")
This formula is made up of two parts:
1) The first part checks to see if a number is present in two different columns, BP and BS, and if it is it returns “DP & KM”.
IF(AND(VLOOKUP($A9,PIVOTS.LOOKUPS!$BP:$BP,1,FALSE)=$A9,VLOOKUP($A9,PIVOTS.LOOKUPS!$BS:$BS,1,FALSE)=$A9),"DP & KM",
2) The second part, which should only happen if the first part isn’t true, checks each column individually and returns the associated value.
IF(VLOOKUP($A9,PIVOTS.LOOKUPS!$BP:$BP,1,FALSE)=$A9,"CONVERT TO KM",IF(VLOOKUP($A9,PIVOTS.LOOKUPS!$BS:$BS,1,FALSE)=$A9,"CONVERT TO DP",""))
This formula is made up of two parts:
1) The first part checks to see if a number is present in two different columns, BP and BS, and if it is it returns “DP & KM”.
IF(AND(VLOOKUP($A9,PIVOTS.LOOKUPS!$BP:$BP,1,FALSE)=$A9,VLOOKUP($A9,PIVOTS.LOOKUPS!$BS:$BS,1,FALSE)=$A9),"DP & KM",
2) The second part, which should only happen if the first part isn’t true, checks each column individually and returns the associated value.
IF(VLOOKUP($A9,PIVOTS.LOOKUPS!$BP:$BP,1,FALSE)=$A9,"CONVERT TO KM",IF(VLOOKUP($A9,PIVOTS.LOOKUPS!$BS:$BS,1,FALSE)=$A9,"CONVERT TO DP",""))