Nested IF and MID functions

J

Jan Buckley

I am trying to use a MID function with an IF statement and keep getting an
error prompt. I can enter the MID function with no problem: MID(D2,4,1) IF
the 4th digit of the info in cell D2 is an A or greater, then I want to see
D2 in my cell, otherwise I don't want anything. Help!
 
B

Bob Phillips

=IF(MID(D2,4,1)>="A",D2,"")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
J

JE McGimpsey

ONe way:

=IF(MID(D2,4,1)>="A",D2,"")

You may be surprised by the results of >="A". Post back with more info
if you need another criterion.
 
Top