Solved

Help with If(AND(MID( formula

Posted on 2014-04-28
8
153 Views
Last Modified: 2014-04-28
IF(AND(MID(A5,4,1)="B",if(MID(A5,5="R","yes","no")))

not working but must be close?  If the 4 character in cell a5 is B and the 5 character is R, return yes, for not return no
0
Comment
Question by:RWayneH
8 Comments
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 500 total points
ID: 40028159
IF(AND(MID(A5,4,1)="B",MID(A5,5,1)="R"),"yes","no")
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40028169
Or, simpler:
IF(MID(A5, 4, 2)="BR", "yes", "no")
0
 
LVL 22

Expert Comment

by:Flyster
ID: 40028180
Wouldn't it be easier to just use:

=IF(MID(A5,4,2)="BR","yes","no")

Flyster
0
 

Author Closing Comment

by:RWayneH
ID: 40028182
Thanks for the help.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40028188
You're welcome. Glad I could help!
0
 
LVL 22

Expert Comment

by:Flyster
ID: 40028189
@ Dan:
Sorry. I forgot to refresh before posting! No points here.
0
 
LVL 27

Expert Comment

by:MacroShadow
ID: 40028198
=IF(AND(MID(A5,4,1)="B",MID(A5,5,1)="R"),"yes","no")
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40028207
@Flyster: No worries, I do that all the time. You were only 98 seconds late.
MacroShadow, on the other hand... :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now