+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Help needed with logical function

  1. #1
    Registered User
    Join Date
    06-19-2011
    Location
    Alabama USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help needed with logical function

    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

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Help needed with logical function

    Hi,

    How about this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help needed with logical function

    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 the icon 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!)

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help needed with logical function

    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.

  5. #5
    Registered User
    Join Date
    06-19-2011
    Location
    Alabama USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help needed with logical function

    Quote Originally Posted by JBeaucaire View Post
    It might be as simple as:

    =CHOOSE(COUNT($P2:$R2), "EA", "FC", "MM")

    ...depends on how orderly those dates are entered.

    You are right JB...it WAS this simple!

    You guys are all awesome. Thanks for the help. Ross

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help needed with logical function

    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
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1