+ Reply to Thread
Results 1 to 6 of 6

trouble concatenating an IF and IF(AND... statement -- sample attached

  1. #1
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    trouble concatenating an IF and IF(AND... statement -- sample attached

    I've been trying to solve this for way too long now, any assistance is appreciated. I need to concatenate two formulas that I have to determine eligibility status for some of our employees.

    Condition 1: If people were hired after 7/3/2011, they are not eligible.
    Condition 2: If people were hired between 4/1 and 7/3, they are not eligible.

    Otherwise, anybody is eligible. I have the two independent formulas working, but cannot seem to merge them. Any help is most appreciated!

    tia
    Attached Files Attached Files
    Last edited by justinhampton81; 08-12-2011 at 02:33 PM.

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

    Re: trouble concatenating an IF and IF(AND... statement -- sample attached

    Hi,

    How about:

    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 Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: trouble concatenating an IF and IF(AND... statement -- sample attached

    This should do it...

    =IF(AND(A5<$A$2,AND(A5>$B$2,A5>$C$2)),"Eligible","Not Eligible")

    I got carried away on the ANDs...
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: trouble concatenating an IF and IF(AND... statement -- sample attached

    That's what i thought would work:

    =IF(AND(A5<$A$2,AND(A5>$B$2,A5>$C$2)),"Eligible","Not Eligible")

    but when I tested it against the date 2/28/2011, which should be eligible, the formula produces a "non eligible" result.

    The column I have labeled "Formula 1" works fine, however, Formula 2 produces the wrong result. That's where i"m having the issue.

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

    Re: trouble concatenating an IF and IF(AND... statement -- sample attached

    How about:

    Please Login or Register  to view this content.
    Cheers,

  6. #6
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: trouble concatenating an IF and IF(AND... statement -- sample attached

    perfect! thanks Conne

+ 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