+ Reply to Thread
Results 1 to 9 of 9

Sum vs sumif formula query

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    6

    Sum vs sumif formula query

    Hi - can someone advise why the following 'sumifs' doesn't work the same way as a normal 'sum', and suggest the correct the syntax to achieve this in the sumifs.

    Capture.JPG

  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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: Sum vs sumif formula query

    Are you still using Excel 2010? If not, please update your profile.

    You can't do that subtraction from a range in a SUMIFS - the syntax won't allow it. Try putting the subtraction OUTSIDE the SUMIFS.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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
    Registered User
    Join Date
    06-19-2013
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Sum vs sumif formula query

    I know it doesn't work for the 'sumifs' - that's why I was asking if anyone knew an easy fix or alternative.
    Putting the subtraction on the outside does not give the right result. The subtractor needs to be deducted from each cell of the array.
    Example workbook now attached.
    I am using excel 365, and will update my profile.

    Excel query.xlsx
    Last edited by jedoob; 03-01-2024 at 10:09 AM.

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

    Re: Sum vs sumif formula query

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-19-2013
    Location
    London, England
    MS-Off Ver
    Excel 365
    Posts
    6

    Re: Sum vs sumif formula query

    Now that's what I'm talking about! Thank you!

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

    Re: Sum vs sumif formula query

    Glad to help & thanks for the feedback.

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,493

    Re: Sum vs sumif formula query

    Pls try this formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,607

    Re: Sum vs sumif formula query

    Not better than the solutions you've been given, but, just for fun:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  9. #9
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Sum vs sumif formula query

    With Excel 365 you can use just SUM.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Using sumif formula along with power query
    By Hazel1694 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2022, 02:09 AM
  2. query relating to sumif formula
    By Attique in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-29-2016, 02:35 PM
  3. [SOLVED] sumif query
    By Christopherdj in forum Excel General
    Replies: 3
    Last Post: 05-25-2012, 02:06 PM
  4. Countif Query & sumif query help
    By masond3 in forum Excel General
    Replies: 4
    Last Post: 11-16-2011, 03:42 AM
  5. sumif query & countif query help
    By masond3 in forum Excel General
    Replies: 1
    Last Post: 11-15-2011, 06:56 PM
  6. Query:sumif
    By biggercrap in forum Excel General
    Replies: 1
    Last Post: 03-26-2011, 09:31 AM
  7. SUMIF Query
    By Branno in forum Excel General
    Replies: 1
    Last Post: 07-04-2010, 09:28 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