+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Nested IF, Vlookup and Match, or?

  1. #1
    Registered User
    Join Date
    03-03-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Thumbs up Nested IF, Vlookup and Match, or?

    I have a puzzle that I can't figure out how to approach it. I am sure it'll not be heard for Excel savvy, but...here the issue

    Purpose: To populate Column C with Member Status Categories as Active, Not Active, New Member (sample file is attached)

    Logic:
    1. Active Members: If MCDate = Current date (int his case October 2011), then that member is active and all his/her previous consecutive months should also be populated as Active (as shown in column C
    2. New Members: If a member joined in the current date (in this case October 2011) and has no previous records (based on Name and MCDATE), then the Member is "New Member"
    3. Not Active Members: The easy logic would be all members who are not in Active or New categories will be assigned as Not Active

    Anxious to hear some solutions,

    Thank You,
    HelalSample.xlsx
    Last edited by Helal; 11-21-2011 at 08:03 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Nested IF, Vlookup and Match, or?

    Helal,

    Looks like you're using excel 2007, so the following should work for you:
    =IF(COUNTIFS(B:B,$D$2,A:A,A2)>0,IF(COUNTIFS(B:B,"<"&$D$2,A:A,A2)>0,"Active","New"),"Inactive")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Nested IF, Vlookup and Match, or?

    Try:

    =IF(COUNTIFS($A$2:$A$31,A2,$B$2:$B$31,$D$2),IF(COUNTIF($A$2:$A$31,A2)=1,"New","Active"),"Not Active")

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    03-03-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Nested IF, Vlookup and Match, or?

    Thank you so much...worked like a charm

  5. #5
    Registered User
    Join Date
    03-03-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Nested IF, Vlookup and Match, or?

    The new logic has a twist. Please see the new logic explanation in the attached file. Any help is greatly appreciated.

    Thank You,

    Helal
    Attached Files Attached Files

+ 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