+ Reply to Thread
Results 1 to 5 of 5

Would like to get N/A when sumifs = 0, but formula to complicated to know where to include

  1. #1
    Registered User
    Join Date
    03-05-2018
    Location
    GENEVA, SWITZERLAND
    MS-Off Ver
    10
    Posts
    17

    Would like to get N/A when sumifs = 0, but formula to complicated to know where to include

    Hello guys, have just received this formula from a colleague (who is currently on holidays) and would like to get N/A every time is = 0, the problem is that my knowledge is not enough to know where to put the statement IF:

    =IF(AND(C$16+($A28-1-1)*T01_D_Freq>T01_D_Cut,C$16+($A28-1)*T01_D_Freq<=T01_D_Last),IFERROR(T01_Yp_FA+T01_Yp_FM*SUMIFS(INDEX(dClean!rClean_Data,,T01_Yc),dClean!rClean_Dt,"<=" & (C$16+($A28-1)*T01_D_Freq),dClean!rClean_Dt,">" & (C$16+($A28-1-1)*T01_D_Freq),INDEX(dClean!rClean_Data,,T01_Yc),"<>#N/A"),NA()),NA())

    And i would like to know where exactly to place if sumifs= 0, then N/A. Trying for the last two days and just receive from excel "that i am using too many arguments".

    Is anybody able to help? thank you in advance!
    Last edited by laura.gomper; 08-10-2021 at 04:27 AM.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Would like to get N/A when sumifs = 0, but formula to complicated to know where to inc

    taking the requirement literally, i.e. error if SUMIFS returns 0, one option would be to change

    *SUMIFS(INDEX(dClean!rClean_Data,,T01_Yc),dClean!rClean_Dt,"<=" & (C$16+($A28-1)*T01_D_Freq),dClean!rClean_Dt,">" & (C$16+($A28-1-1)*T01_D_Freq),INDEX(dClean!rClean_Data,,T01_Yc),"<>#N/A")

    to

    *1/(1/SUMIFS(INDEX(dClean!rClean_Data,,T01_Yc),dClean!rClean_Dt,"<=" & (C$16+($A28-1)*T01_D_Freq),dClean!rClean_Dt,">" & (C$16+($A28-1-1)*T01_D_Freq),INDEX(dClean!rClean_Data,,T01_Yc),"<>#N/A"))

    the above should invoke the "if_error" element of the IFERROR (#N/A) whenever the SUMIFS returns 0

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Would like to get N/A when sumifs = 0, but formula to complicated to know where to inc

    Hi,
    Perhaps try this:

    =IF(AND(C$16+($A28-1-1)*T01_D_Freq>T01_D_Cut,C$16+($A28-1)*T01_D_Freq<=T01_D_Last)>0,IFERROR(T01_Yp_FA+T01_Yp_FM*SUMIFS(INDEX(dClean!rClean_Data,,T01_Yc),dClean!rClean_Dt,"<=" & (C$16+($A28-1)*T01_D_Freq),dClean!rClean_Dt,">" & (C$16+($A28-1-1)*T01_D_Freq),INDEX(dClean!rClean_Data,,T01_Yc),"<>#N/A"),NA()),NA())

  4. #4
    Registered User
    Join Date
    03-05-2018
    Location
    GENEVA, SWITZERLAND
    MS-Off Ver
    10
    Posts
    17

    Re: Would like to get N/A when sumifs = 0, but formula to complicated to know where to inc

    OMG, it works. I could never imagine to get such a fast and accurate reply. Thank you thank you so much XLent. you have improved my week 200%. If i can help you in any way pls don't hesitate to ask! Cheers and have a nice day <3

  5. #5
    Registered User
    Join Date
    03-05-2018
    Location
    GENEVA, SWITZERLAND
    MS-Off Ver
    10
    Posts
    17

    Re: Would like to get N/A when sumifs = 0, but formula to complicated to know where to inc

    Thanks also to you Belinda! just seen your reply now

+ 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] Function/Formula like SUMIFS to include Sheet name
    By mstoto in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 03-07-2018, 11:08 AM
  2. Replies: 1
    Last Post: 11-22-2016, 01:54 AM
  3. sumifs include/ include criteria
    By Burt_100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2016, 07:34 AM
  4. Trying to include "Blank Cells" in a SUMIFS formula
    By KomicJ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-28-2015, 11:47 PM
  5. [SOLVED] Complicated SUMIFS Formula Using Dependent Combo boxes Values
    By SimonNus in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-15-2014, 04:20 AM
  6. Semi-Complicated formula involving sumifs
    By TheVodkaDude in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-10-2013, 12:27 AM
  7. Excel 2007 : Complicated Sumifs Formula
    By SimpleJack in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 11:24 AM

Tags for this Thread

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