+ Reply to Thread
Results 1 to 4 of 4

Nested IF formula returning "FALSE" instead of a numeric value

Hybrid View

  1. #1
    Registered User
    Join Date
    12-08-2017
    Location
    CA, USA
    MS-Off Ver
    Excel 2016
    Posts
    1

    Nested IF formula returning "FALSE" instead of a numeric value

    The below IF statement is returning "FALSE" instead of a numeric value. I've tried both trimming and formatting the involved cells, but still receive the "FALSE" outcome. Can anyone advise?

    IF($F12=0,IF(H$5-YEAR($C12)=0,IF(G12>0,(VLOOKUP(MONTH(C12),$Y$2:$AA$16,3,FALSE)-1)*H$9,MAX(0,H$8-SUM(H$10:H11))-((13-(VLOOKUP(MONTH(C12),$Y$2:$AA$16,3,FALSE))*H$9))),IF(H5-YEAR(C12)<0,0,MAX(0,H8-SUM(H10:H12),MIN(($H$8-SUM($G12:H12)),($F$12-SUM(H$10:H11)))))))
    Table.JPGTable2.JPG

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,690

    Re: Nested IF formula returning "FALSE" instead of a numeric value

    This is a very long formula and I don't have time to parse it out, but an IF statement returns FALSE if the logical test is FALSE but there is no Else part specified.

    Formula: copy to clipboard
    =IF(A1=4, "Hi!")


    If A1 = 5 this formula will return FALSE. You probably have the grandaddy version of that.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    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
    53,044

    Re: Nested IF formula returning "FALSE" instead of a numeric value

    your 3rd IF statement has 4 arguments (from the looks of it) and the last 1 has 5, IF statements can only have 3. See how I have indented them to help it stand out?

    IF($F12=0,
    ....IF(H$5-YEAR($C12)=0,
    ........IF(G12>0,
    ........(VLOOKUP(MONTH(C12),$Y$2:$AA$16,3,FALSE)-1)*H$9,
    ........MAX(0,H$8-SUM(H$10:H11))-((13-(VLOOKUP(MONTH(C12),$Y$2:$AA$16,3,FALSE))*H$9))),
    ............IF(H5-YEAR(C12)<0,
    ............0,
    ............MAX(0,H8-SUM(H10:H12),
    ............MIN(($H$8-SUM($G12:H12)),
    ............($F$12-SUM(H$10:H11)))))))
    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

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Nested IF formula returning "FALSE" instead of a numeric value

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution. Explain what you want the formula to do...

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] COUNTIFS returning "TRUE" or "FALSE"
    By ambolton528 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-20-2016, 08:16 PM
  2. [SOLVED] Nested HLOOKUP returns "FALSE" in cell where result should be "0.00"
    By gammccubbin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2016, 09:49 AM
  3. IF/AND Formula Returning "FALSE" instead of "" (NULL)
    By sourbeer in forum Excel General
    Replies: 5
    Last Post: 03-22-2012, 11:23 AM
  4. Formula is returning "FALSE" instead of "" (blank)
    By wvpersephone13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-27-2011, 04:31 PM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  6. Replies: 5
    Last Post: 06-15-2010, 10:51 AM
  7. [SOLVED] Formula Returning "FALSE"
    By Joe Gieder in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2006, 04:20 PM

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