+ Reply to Thread
Results 1 to 5 of 5

Question (issue) with SUMIF function in Excel 2013

  1. #1
    Registered User
    Join Date
    03-22-2013
    Location
    Birmingham, AL
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question (issue) with SUMIF function in Excel 2013

    In the attached spreadsheet, the SUMIF function in cell G1514 is giving me fits. If the criteria is met, it should sum range I5:I1504. Initially, I mistakenly entered the beginning range as I4 instead of I5. The cell I4 is my column header entitled “Fuel”. Here’s where it gets interesting…
    When I correct the range to begin with cell I5 instead of I4, my total changes. Why would my totals change if I4 is a text field? Furthermore, if I try to break the function by beginning the range with cells I3 or I2 (…which are blank cells), the totals change even more.
    Why is Excel recognizing blank and text fields in the SUMIF function as tangible numbers??
    Thanks in advance for any help you can give.
    Sincerely,
    Russ
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Question (issue) with SUMIF function in Excel 2013

    1st, you need to keep your rages the same...
    you had this...
    =SUMIF(B5:B1504,B1504,I4:I1504)
    You should have this...
    =SUMIF(B4:B1504,B1504,I4:I1504)

    I ran the calc manually, and I get $35,791
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  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,461

    Re: Question (issue) with SUMIF function in Excel 2013

    Generally, both ranges in a SUMIF function have the same number of cells.

    This doesn't ...
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    I suspect it's getting confused.


    Regards, TMS
    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 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,461

    Re: Question (issue) with SUMIF function in Excel 2013

    @Ford: I think he should have this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    But, same difference ... total is the same as you get.


    Regards, TMS

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Question (issue) with SUMIF function in Excel 2013

    Yup, row 4 included the heading, row 5 does not - should not affect the answer

+ 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. VBA Create Sheets Excel 2013 Issue
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2014, 10:00 AM
  2. [SOLVED] Excel 2013 issue with text formatting
    By Sthlm in forum Excel General
    Replies: 7
    Last Post: 10-23-2013, 01:52 AM
  3. Compatibility issue with Excel 2013
    By kinokino in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-02-2013, 04:17 AM
  4. Excel 2013 issue generating report
    By mwittman in forum Excel General
    Replies: 0
    Last Post: 08-08-2013, 05:11 PM
  5. [SOLVED] Sumif() and Sumifs() Issue/Question
    By Consagrado in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-25-2013, 09:13 AM

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