+ Reply to Thread
Results 1 to 8 of 8

How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

  1. #1
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    Good evening folks! Hope everyone is well. I'm looking for a way to get a couple of different formulas to return #N/A where there is no data to be plotted for the upcoming months. As this is my first post, I hope I'm not breaching protocal by leaving the details in the attachment provided.

    Any assistance, advice and awesome excel wizardry would be well appreciated.

    Steve

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    Use N/A()

    something like

    =if(sumifs=0,N/A(),sumifs)
    underlined - test the value of sumifs if 0 then put #N/A

    =IF(T2=0,NA(),T5+S7)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    I tried the sumifs suggestion like this =if(SUMIFS=0, NA(),SUMIFS(Div_800_WOs_In,Div_800_Month,T$1,Div_800_Year,$J$1) and got #NAME? Something with my sintax?

    I do have the =IF(T2=0,NA(),T5+S7) in there and it works fine if T2 is >1 but if only T3 is >1 the other formulas don't return the proper value... Suggestions?

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    My bad!!

    i didn't notice i put / in NA()

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    in second query

    maybe put an (and)
    =IF(and(T2=0,t3=0),NA(),T5+S7)

  5. #5
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    The SUMIFS works perfectly! Thank you.

    I may have oversimplified the other problem. If either T2 or T3 are greater than 0 the formulas in T4:T7 must return a value.

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    Then change and with or

    This is the formula in T4

    =IF(OR(T2>0,T3>0),T3/T2,NA())

  7. #7
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    Still no go. I'm going to try some 'and/or' combos and see where I get.

  8. #8
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: How Do I Intentionally return #N/A in SUMIFS and Other Formulas?

    Thanks for helping me with the SUMIFs problem. Your solution will save me loads of time!

+ 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