All, I hope someone here can help me out. I am trying to make an Excel roster of membership for an organization. Each row will contain data relevant to the member, with Column A listing a status. Columns P, Q and R will contain dates. If there is a date in P with Q and R empty, I want column A to reflect "EA". If there is a date in P AND Q, Column A will show "FC". It P, Q and R all have a date, Column A should read "MM".
Here is what I have managed to make. Note that when used, only the last scenario works properly. That section I have posted in red. IE- if all three have a date, "MM" appears on the Column A.
=IF(AND(P2>0,Q2<0,R2<0),"EA",IF(AND(P2>0,Q2>0,R2<0),"FC",IF(AND(P2>0,Q2>0,R2>0),"MM")))
I am about to throw my hands up! Thanks for taking the time to read this, maybe someone can help out! Ross
Hi,
How about this:
Cheers,=IF(AND(P2>0,Q2="",R2=""),"EA",IF(AND(P2>0,Q2>0,R2=""),"FC",IF(AND(P2>0,Q2>0,R2>0),"MM")))
“To sin by silence when they should protest makes cowards of men.” ~ Abraham Lincoln
It might be as simple as:
=CHOOSE(COUNT($P2:$R2), "EA", "FC", "MM")
...depends on how orderly those dates are entered.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
A better one might be:
=LOOKUP(2, 1/($P2:$R2>0), {"EA","FC","MM"})
This one would still give you "FC" if Q had a date and P was accidentally empty.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
PLEASE PM WHEN YOU HAVE DONE THIS AND I WILL DELETE THIS POST
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks