+ Reply to Thread
Results 1 to 12 of 12

SUMIFS Function returning #VALUE - Multiple columns to be summed

  1. #1
    Registered User
    Join Date
    04-05-2016
    Location
    Delhi
    MS-Off Ver
    2013
    Posts
    21

    SUMIFS Function returning #VALUE - Multiple columns to be summed

    Hi experts,

    I have this problem.

    In one excel sheet I have multiple tables containing same number of columns and same column heading (eg, T1,T2,T3,T4,T5,T6). These values need to be summed up (i.e. All T1 in 1 column, All T2 in 1 Column ... grouped by 2 preceding columns "CITY" and "LOCATION" )

    I have attached the Problem sheet If someone can give fix the formula in the attached sheet, I would highly appreciate.

    Thanks in Advance.

    Vetaal.
    Attached Files Attached Files
    Last edited by evilcreature; 09-08-2019 at 11:53 AM. Reason: Modified Attachment

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    How about
    =SUMPRODUCT((DATA!$B$3:$B$14=$B3)*(DATA!$C$3:$C$14=$C3)*(DATA!$D$2:$HL$2=D$2),DATA!$D$3:$HL$14)

  3. #3
    Registered User
    Join Date
    04-05-2016
    Location
    Delhi
    MS-Off Ver
    2013
    Posts
    21

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    Seems to be perfect. Will try on actual data and revert.

    Thanks a ton.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    You're welcome & thanks for the feedback

  5. #5
    Registered User
    Join Date
    04-05-2016
    Location
    Delhi
    MS-Off Ver
    2013
    Posts
    21

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    Yes, It works on actual data too. But takes some time to calculate even though I have only 176 data rows and 1414 columns.

    Is there a faster way of doing this ?

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    Not that I'm aware of, but others may know better.

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

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    What is "some time"??

    One possible alternatie might be this array formula:

    =SUM(IF(MOD(COLUMN(DATA!D3:HF3)-COLUMN(D3),7)=0,DATA!D3:HF3,0))
    Last edited by Glenn Kennedy; 09-08-2019 at 01:31 PM.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    Actually.... since the data are in the same order on both sheets:

    =SUMPRODUCT(--(DATA!$D2:$HL2=D$2),DATA!$D3:$HL3)

    will also work well (and fastest)

  9. #9
    Registered User
    Join Date
    04-05-2016
    Location
    Delhi
    MS-Off Ver
    2013
    Posts
    21

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    ,

    Thanks Glen. =SUMPRODUCT(--(DATA!$D2:$HL2=D$2),DATA!$D3:$HL3) indeed works well and very fast.

    Thanks

  10. #10
    Registered User
    Join Date
    04-05-2016
    Location
    Delhi
    MS-Off Ver
    2013
    Posts
    21

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    Thanks a ton to Fluff13 and Glenn Kennedy. My Issue is resolved now.

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

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: SUMIFS Function returning #VALUE - Multiple columns to be summed

    Glad to help & thanks for the feedback

+ 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. Sumifs function not returning any value
    By bigroo1958 in forum Excel General
    Replies: 4
    Last Post: 07-15-2018, 09:44 AM
  2. [SOLVED] SUMIFS returning NIL on multiple conditions in one column
    By mysticmoron109 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-03-2015, 09:12 PM
  3. Replies: 4
    Last Post: 05-07-2015, 02:56 PM
  4. [SOLVED] sumifs function returning 0 error...
    By courage in forum Excel General
    Replies: 9
    Last Post: 04-09-2012, 06:49 PM
  5. Replies: 6
    Last Post: 03-02-2012, 02:47 AM
  6. 2 condition lookup returning multiple values summed
    By MosesAtl in forum Excel General
    Replies: 14
    Last Post: 08-17-2010, 04:45 PM
  7. Code for returning summed data
    By MadCrammer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2009, 07:13 PM

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