Hello my favorite smart people! I need your help. I am trying to look up a value in one column but need to look at 3 others to determine if the value should be there or left blank. Here is what I need:
If B2 contains "P01" then enter qty from A2. If B2 = "none" then look at C2. If C2 contains "P01" then enter qty from A2. If both B2 and C2 are "none" then look at D2. If D2 contains "01" then enter qty from A2. If all columns fail, then leave blank.
I have the following formula, which kind of works, but I don't know how to make it stop looking if the first (or second) cell contains the correct data.
IF(ISNUMBER(SEARCH("P01",$B2)),$A2,IF(ISNUMBER(SEARCH("P01",$C2)),$A2,IF(ISNUMBER(SEARCH("-01",$D2)),$A2,"")))
Column B will usually have the data, otherwise, Column C will. Both of these column's data will be the same format. Column D will always have data but in a different format. It is the last resort. All three columns are also formulas using a lookup.
I attached a small file as an example.
Sample for formula help.xlsx
Bookmarks