Solved

Help with If(AND(MID( formula

Posted on 2014-04-28
8
154 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
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Closing Comment

by:RWayneH
ID: 40028182
Thanks for the help.
0
 
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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Alphabetical Order for Letters 2 21
Extract Names Based on Position in the Column 12 29
Excel Question 17 15
Time difference between dates without weekend 16 20
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

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