+ Reply to Thread
Results 1 to 7 of 7

SUMIF missing one row out of calculations

  1. #1
    Registered User
    Join Date
    01-31-2018
    Location
    Bristol
    MS-Off Ver
    365 pro
    Posts
    2

    SUMIF missing one row out of calculations

    Hi

    I am trying to add up all the instances a certain person makes a sale in a spreadsheet. I have a column (B) with all the names, and a column (E) with all the sale amounts. Cell R2 holds the names in a table format and the SUMIF formula is in T2 - =SUMIF(B:B,R2,E2:E201)

    At the bottom of my little summary table I've created I use a standard SUM formula to add up all the subtotals. Similarly, at the bottom of my large table I have a SUM formula adding up all the sale amounts. When comparing the 2 totals they do not match, they are out by the exact same amount of the sale amount in cell E2 each time. If I sort/filter the large table, and the value of E2 changes, the totals are always apart by the value of E2.

    I've checked that all the names are typed exactly the same in the column, I've done a COUNTIF formula and the numbers for each name are correct. I've made sure the cells are formatted correctly for currency.

    Can anyone shed any light on this for me please?

    Cheers

    J

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: SUMIF missing one row out of calculations

    Your SUMIF will include the SUM totals if I understand your description correctly (as it looks at the total column).

    If not post a file.

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    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,492

    Re: SUMIF missing one row out of calculations

    I would try:
    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


  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,915

    Re: SUMIF missing one row out of calculations

    Quote Originally Posted by newbjohny View Post
    =SUMIF(B:B,R2,E2:E201)
    Change to: =SUMIF(B:B,R2,E:E)

    or: =SUMIF(B2:B201,R2,E2:E201)

  5. #5
    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,492

    Re: SUMIF missing one row out of calculations

    I should have said, it is normal to have matching ranges and I think you are offsetting the comparison somehow.

  6. #6
    Registered User
    Join Date
    01-31-2018
    Location
    Bristol
    MS-Off Ver
    365 pro
    Posts
    2

    Re: SUMIF missing one row out of calculations

    Thanks all, that's fixed it I changed the B:B to B2:B201 and the totals now add up Thank you so much for your help, I've been scratching my head on this one for hours. haha. Thanks again

  7. #7
    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,492

    Re: SUMIF missing one row out of calculations

    You're welcome. Thanks for the rep.

+ 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] Compare two columns on separate sheet, if missing, insert missing data
    By lilvictorians in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-03-2019, 11:44 PM
  2. [SOLVED] Advanced SUMIF - date range including missing dates
    By chococ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2015, 02:12 PM
  3. Weighted Calculations When Missing Data Points
    By bchilme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2015, 11:32 AM
  4. Excel Macro to find missing dates and insert missing date as blank row
    By JevaMarie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2013, 11:08 AM
  5. Sumif from Table - Salary Calculations
    By mrr2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2013, 05:37 PM
  6. Multiple calculations in one SUMIF formula across multiple worksheets
    By necht_angel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2011, 05:30 AM
  7. SUMIF calculations
    By non_is in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2005, 05:03 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