CONDITIONAL STATEMENT
sir,
my formula is =IF(A1=PMC 1234,B1+120,"",IF(A1=PLB 1234,B1+60,""))... now,
the problem is.. PMC and PLB is always followed with different numbers..
thats why i am searching for a variable, like asterisk if it can replace it..
making the formula =IF(A1=PMC*,B1+120,"",IF(A1=PLB*,B1+60,""))... but it
doesnt work..
hope u could help me.. thanks..
rynner frm philippines
"Barb Reinhardt" wrote:
You may want to use something like
If myString like "AB*" then
'looks for anything that starts with AB
or
If myString like "*AB*" then
'looks for anything with AB in the middle.
--
HTH,
Barb Reinhardt
If this post was helpful to you, please click YES below.
"RYNNER" wrote:
I HAV A PROBLEM IN CREATING FORMULA, I WISH TO CREATE A FORMULA USING
CONDITIONAL STATEMENTS INVOLVING LETTERS. FOR INSTANCE, IF I ENTER "ABC" THEN
THE FORMULA WORKS. NOW, THIS IS THE PROB, I WISH IT WILL WORK EVEN IF I TYPE
ONLY "AB".. IM TRYIN ASTERISK, BUT IT DOESNT WORK, LIKE "AB*" ... COULD
SOMEONE HELP ME PLEASE..
THANKS IN ADVANCE..
|