If and or statement

Hi Experts

Have a column of data that looks something like this:

B1MON
J1MON
J4THU
J4THU
J5FRI
J1MON
J3WED

All data starts with a "J" or "B".  What I need to come up with is a nice formula that will do the following.
If the left most characters are J1, J2, J3, J4, J5 then "J M-F", if the first two characters are equal to J6 then "J SAT" or
if the first two characters are B1, B2,B3,B4,B5,B6 then "B".  

I am running on empty today and having a time trying to make this work.  Any help would be greatly appreciated as always.

Andy
spudmccAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nutschCommented:
Can you have any other options than those for the first two characters? Would the following work:

=if(left(a1,1)="J","J " & if(a1="J6","SAT","M-F"),"B")

T
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Saurabh Singh TeotiaCommented:
Small Change in Thomas Formula..which is this...No points for this...

=IF(LEFT(A1,1)="J","J " & IF(LEFT(A1,2)="J6","SAT","M-F"),"B")

Open in new window



Saurabh...
0
spudmccAuthor Commented:
Works great except for the J6.  This doesn't return J SAT but rather J M-F.  The first two characters in that field are
the only two that  establish the results.

A
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Saurabh Singh TeotiaCommented:
spudmcc,

Run the formula which i posted..that will do the trick..Credit goes to thomas.. :-)

Saurabh...
0
spudmccAuthor Commented:
Works great.  I can't thank you enough for the fast turn around.  Will make the rest of my afternoon much nicer.  

Thank you Saurabh for the assistance.  Appreciate you both so much.  

A
0
nutschCommented:
Thanks Saurabh!

T
0
Saurabh Singh TeotiaCommented:
Yw buddy.. :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.