+ Reply to Thread
Results 1 to 9 of 9

Excel Function SUMIF or SUMIFS

  1. #1
    Registered User
    Join Date
    03-01-2018
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    10

    Excel Function SUMIF or SUMIFS

    Hi all,

    I am trying to sum a few cells in excel based on certain criteria. My worksheet looks similar to the attached where i want to be able to sum all cells that correspond to a given value and falling under a given month as in the attached. I am unable to work the logic out and wondering if someone out there could help. Thanks in advance.

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Excel Function SUMIF or SUMIFS

    Hi Sontu- If you change the month headers to actual dates (formatted to read "Jan", Feb", etc.), this will work. Paste in C3, copied across and down:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,967

    Re: Excel Function SUMIF or SUMIFS

    Change June to Jun and try this in C3:

    =SUMPRODUCT((TEXT($J$2:$AF$2,"mmm")=C$2)*($J$3:$AF$7=$B3),$J$4:$AF$8)

  4. #4
    Registered User
    Join Date
    03-01-2018
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    10

    Re: Excel Function SUMIF or SUMIFS

    Hi mate,

    Thanks for your response. The formula is working in that worksheet, however when i am trying to replicate that on a larger version of the sheet, it is giving me a value error.

    Please see attached for reference. What am i doing wrong?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-01-2018
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    10

    Re: Excel Function SUMIF or SUMIFS

    Hi Phuocam,

    Thanks for the response mate. It seems to be working fine. I have tried replicating the formula on a larger spreadsheet and it appears to be doing what it is intended to. Attached a sample including leelnich's formula which seems to be giving a value error. I may be doing something wrong with that, i guess.
    Attached Files Attached Files

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Excel Function SUMIF or SUMIFS

    OOPS- duplicate post...

  7. #7
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Excel Function SUMIF or SUMIFS

    Quote Originally Posted by Sontu View Post
    ...The formula ... is giving me a value error...
    One of the converted ranges was off by a row, but the main problem: it expects date headers as NUMBERS (actual dates) on the Summary sheet (1/1/2018, 2/1,3/1,etc.) These can be displayed as Jan, Feb, Mar,etc. by using a custom Number format : "mmm"
    Please Login or Register  to view this content.
    Last edited by leelnich; 03-12-2018 at 06:10 AM.

  8. #8
    Registered User
    Join Date
    03-01-2018
    Location
    Sydney
    MS-Off Ver
    Microsoft Office Professional Plus 2013
    Posts
    10

    Re: Excel Function SUMIF or SUMIFS

    Quote Originally Posted by leelnich View Post
    One of the converted ranges was off by a row, but the main problem: it expects date headers as NUMBERS (actual dates) on the Summary sheet (1/1/2018, 2/1,3/1,etc.) These can be displayed as Jan, Feb, Mar,etc. by using a custom Number format : "mmm"
    Please Login or Register  to view this content.
    Thanks buddy; appreciate it.

  9. #9
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Excel Function SUMIF or SUMIFS

    Happy to help, thank you for the rep. - Lee

+ 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. NEED HELP WITH SUMIF/SUMIFS Function
    By mrjones074 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-18-2015, 05:33 PM
  2. SUM function works...SUMIF & SUMIFS do not. Please help.
    By archi2this in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2015, 07:29 AM
  3. [SOLVED] Problem with Excel SUMIFS function
    By mbeurmann in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-04-2013, 04:45 PM
  4. Help Required with Sumif, Sumifs function
    By shantanuk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-03-2012, 08:54 AM
  5. Help in excel function (SUMIFS)
    By L!NuX in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2011, 10:38 AM
  6. SUMIFS function in Excel 2007
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 09-08-2009, 11:32 AM
  7. [Excel 2007 Beta2] Function SUMIFS
    By Franz Verga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2006, 07:00 PM

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