+ Reply to Thread
Results 1 to 9 of 9

getting a #Value error in cell that has formula with sumifs

  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    getting a #Value error in cell that has formula with sumifs

    so here is my formula for the sumifs, can someone tell me what i am doing wrong?

    Please Login or Register  to view this content.
    the sumrange is E3 to K14, the first range for criteria 1 is B3 to B14 with B12 being the criteria, then the range for criteria 2 is C3 to C14 with the criteria found in C12.

    should be simple but getting the value error.

    thoughts?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: getting a #Value error in cell that has formula with sumifs

    You can't sum a 2D range - the sum range needs to have the same dimensions as the criteria ranges.

    Try SUMPRODUCT instead:

    =SUMPRODUCT((CriteriaRange1=Criteria1)*(CriteriaRange2=Criteria2),SumRange)

    =SUMPRODUCT((B3:B14=B12)*(C3:C14=C12),E3:K14)
    Last edited by AliGW; 07-12-2019 at 12:07 PM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: getting a #Value error in cell that has formula with sumifs

    thanks ali for chiming in. sadly getting the same error. here is my formula in G21:

    Please Login or Register  to view this content.
    shouldnt the * be a + though (tried it, same result)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: getting a #Value error in cell that has formula with sumifs

    OK - then there's more to it. Please provide a sample workbook.

    You could try this:

    =SUMPRODUCT(--(B3:B14=B12)*--(C3:C14=C12),E3:K14)

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: getting a #Value error in cell that has formula with sumifs

    shouldnt the * be a + though (tried it, same result)
    Only if you want an OR outcome. SUMIFS is AND (*), so that's what I assumed.

  6. #6
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: getting a #Value error in cell that has formula with sumifs

    so let me give you a little background as this issue comes with this thread: https://www.excelforum.com/excel-pro...ml#post5153848

    here is my mocked up example. thinking of using arrays and sumproduct to get the new after sheet displaying properly.
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: getting a #Value error in cell that has formula with sumifs

    Try this:

    =SUMPRODUCT((B3:B14=B12)*(C3:C14=C12)*(E3:K14))

  8. #8
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: getting a #Value error in cell that has formula with sumifs

    Bingo, that did the trick. will have to do some research on sumproduct for the future. thanks ali, i will mark this as solved

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: getting a #Value error in cell that has formula with sumifs

    Brill - hope it helps in the other thread.

+ 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] sumifs/sumproduct formula returns error or zero
    By adsako in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-26-2018, 03:06 PM
  2. [SOLVED] sumifs/sumproduct formula returns VALUE error
    By adsako in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-01-2018, 08:17 AM
  3. Error value in sumifs formula
    By rviji.cbe in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-15-2015, 10:35 AM
  4. [SOLVED] sumifs formula returns error
    By kronikjb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-08-2015, 12:51 PM
  5. [SOLVED] Add sumifs R1C1 formula to cell error !
    By Petter120 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2012, 01:58 PM
  6. Sumifs Formula Error
    By Hudson in forum Excel General
    Replies: 3
    Last Post: 02-17-2012, 03:16 PM
  7. Sumifs error in formula
    By Grimzby in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-29-2008, 06:39 AM

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