ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   IF-MID Function (https://www.excelbanter.com/new-users-excel/446599-if-mid-function.html)

ROBERT0803

IF-MID Function
 
I need a formula that copies the text into my cell when my =MID(A25,11,2) position is "EA" or "E6" as the value. I need that EA or E6 to copy into the cell. So the formula would look at the MID position...if its EA or E6 then copy, if not then leave it blank. PLease help!

Spencer101

Quote:

Originally Posted by ROBERT0803 (Post 1603751)
I need a formula that copies the text into my cell when my =MID(A25,11,2) position is "EA" or "E6" as the value. I need that EA or E6 to copy into the cell. So the formula would look at the MID position...if its EA or E6 then copy, if not then leave it blank. PLease help!

Hi,

Does the below formula do what you mean?

=IF(OR(MID(A25,11,2)="EA",MID(A25,11,2)="E6"),MID( A25,11,2),"")

ROBERT0803

Quote:

Originally Posted by Spencer101 (Post 1603759)
Hi,

Does the below formula do what you mean?

=IF(OR(MID(A25,11,2)="EA",MID(A25,11,2)="E6"),MID( A25,11,2),"")

You rock. worked great.

Spencer101

Quote:

Originally Posted by ROBERT0803 (Post 1603767)
You rock. worked great.


Glad to help! But yes, I do ROCK! :)

Claus Busch

IF-MID Function
 
Hi Robert,

Am Wed, 18 Jul 2012 16:08:55 +0000 schrieb ROBERT0803:

I need a formula that copies the text into my cell when my
=MID(A25,11,2) position is "EA" or "E6" as the value. I need that EA or
E6 to copy into the cell. So the formula would look at the MID
position...if its EA or E6 then copy, if not then leave it blank. PLease
help!


try:
=IF(OR(MID(A25,11,2)={"EA","E6"}),MID(A25,11,2),"" )


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


All times are GMT +1. The time now is 08:54 PM.

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