?
Solved

Help with If(AND(MID( formula

Posted on 2014-04-28
8
Medium Priority
?
159 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 35

Assisted Solution

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

Accepted Solution

by:
Dan Craciun earned 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Closing Comment

by:RWayneH
ID: 40028182
Thanks for the help.
0
 
LVL 35

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 35

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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
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 will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

770 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