+ Reply to Thread
Results 1 to 4 of 4

Conditional sum resulting in #n/a

Hybrid View

Meatwad Conditional sum resulting in... 01-02-2010, 06:26 AM
zbor Re: Conditional sum resulting... 01-02-2010, 06:31 AM
DonkeyOte Re: Conditional sum resulting... 01-02-2010, 06:38 AM
Meatwad Re: Conditional sum resulting... 01-02-2010, 09:07 AM
  1. #1
    Registered User
    Join Date
    01-02-2010
    Location
    South Jersey Shore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Conditional sum resulting in #n/a

    Hi there,


    I have looked for a solution for this elsewhere but has been unable to find anything.

    The problem: users must paste in data sets of varying size, anything from 200 to 5000 rows of data. I'm looking to run a conditional sum formula that can accommodate these varying ranges.

    The following results in an #N/A error due to empty cells:

    {=SUM(IF('Sheet1'!$D$2:$D$5000=A2;'Sheet1'!$I$2:$I$5000;0))}

    I assume something can be built on to fix this issue. Question is just what.

    Solutions appreciated.

    M/W

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,042

    Re: Conditional sum resulting in #n/a

    Did you type brackets {} manually?
    Because you can't do that. You need to comfirm formula with ctrl+shift+enter

    Also, isnt that just =SUMIF(Sheet1!$D$2:$D$5000;A2;Sheet1!$I$2:$I$5000)?
    Last edited by zbor; 01-02-2010 at 07:52 AM.
    Never use Merged Cells in Excel

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Conditional sum resulting in #n/a

    "empty cells" would not generate the #N/A error.

    It sounds as though you have underlying error values in either of or indeed both of the ranges referenced ... on which basis: what does the below return ?

    =SUM(IF(NOT(ISNA(Sheet1!$D$2:$D$5000))*ISNUMBER(Sheet1!$I$2:$I$5000);(Sheet1!$D$2:$D$5000=$A2)*Sheet1!$I$2:$I$5000))
    confirmed with CTRL + SHIFT + ENTER
    Last edited by DonkeyOte; 01-02-2010 at 06:45 AM. Reason: changed delimiter to ; per OP

  4. #4
    Registered User
    Join Date
    01-02-2010
    Location
    South Jersey Shore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Conditional sum resulting in #n/a

    Thanks for the replies.

    DonkeyOte: your formula works as intended - much appreciated.

    M/W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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