Hello all,
I'm using Excel 2007.
Data set:
--Column B----Column C----Column D----Column E----
1-LAMP Q----*value*----This is a fish----50,000----
2-*blank*----*value*----(K) This is a fish 2----250----
3-etc
J1=40000, J2=50000, K1=(K), L1=Q
Formulas:
Column B:
, copied downwards.
Help appreciated!
I'm using Excel 2007.
Data set:
--Column B----Column C----Column D----Column E----
1-LAMP Q----*value*----This is a fish----50,000----
2-*blank*----*value*----(K) This is a fish 2----250----
3-etc
J1=40000, J2=50000, K1=(K), L1=Q
Formulas:
Column B:
Code:
=IF(E1>=$J$2,"LAMP Q",IF(E1>=$J$1,"ON Q","")), copied downwards for all cells
What I want to do:
In Column C1:-
Evaluate D1 for text containing text in K1, if true = return value in K1,
If False, then evaluate B1 for text in L1, if true = return value in L1,
If False, return blank.
I tried combining the IF() and SEARCH() functions but it doesn't work. Maybe I'm not nesting it right. Is there a simpler and more elegant solution? I wish to keep this workbook free from VBA and Conditional Formatting and also backwards compatible with Excel 2003 (if possible).
Column C:
=IFERROR(IF((SEARCH($K$1,D1)>0),$K$1,(IF(SEARCH($L$1,B1)>0,$L$1,""))),"")
Help appreciated!