ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Nested IF and MID functions (https://www.excelbanter.com/excel-worksheet-functions/31162-nested-if-mid-functions.html)

Jan Buckley

Nested IF and MID functions
 
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!

Bob Phillips

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

--

HTH

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


"Jan Buckley" wrote in message
...
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!




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.

In article ,
"Jan Buckley" wrote:

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!



All times are GMT +1. The time now is 03:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com