+ Reply to Thread
Results 1 to 4 of 4

3 IF's into one

  1. #1
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    3 IF's into one

    Hello,

    I am trying to nest the following 3 IF’s formula into one under “Account” column.

    HTML Code: 
    HTML Code: 
    HTML Code: 
    But it is not working.

    The cost, gain, and income are reference ranges.

    Thank you for your time and consideration.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: 3 IF's into one

    This should work, but in COST, your matching value is Pos, but you are searching for a Neg
    =IF(MATCH(D3,Cost,0),"1674",IF(MATCH(D3,Gain,0),"4312",IF(MATCH(D3,Income,0),"4302","")))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-05-2014
    Location
    Voorheesville, NY
    MS-Off Ver
    Excel 2007
    Posts
    77

    Re: 3 IF's into one

    Hi FDibbins,
    The problem might be related to the figures not maching exactly. The figure in JVU is opposite of what's in SunGard(1674).
    The formula yield a #N/A result. I tried using 1 instead of 0 but it's yield a wrong result.
    Thanks for helping!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: 3 IF's into one

    Then you need to change the sign in the MATCH
    =IF(MATCH(-D3,Cost,0),"1674",IF(MATCH(D3,Gain,0),"4312",IF(MATCH(D3,Income,0),"4302","")))

    You may also need to change 1 or both of the other 2

+ 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