+ Reply to Thread
Results 1 to 5 of 5

Sumif function is summing full range instead of cells matching criteria

  1. #1
    Registered User
    Join Date
    05-12-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    17

    Sumif function is summing full range instead of cells matching criteria

    I need to sum cells in a range based on the date of the column header. For example, I Need to sum all cells that have apple as the row header and Jan 2015 as the column header.

    The formulas I have been trying seem to add all the cells that have apple in the row header. I just want the apple cells for January 2015. I really appreciate any help you can offer.

    Thank you!

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

    Re: Sumif function is summing full range instead of cells matching criteria

    Do you have your ranges in teh right sequence? Check the formula editing bar and Fx button for assistance

    I suggest you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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 Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumif function is summing full range instead of cells matching criteria

    Is Jan 2015 a text entry or is it a date formatted to display as mmm yyyy?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-12-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Sumif function is summing full range instead of cells matching criteria

    It is a date formulated as Jan-15

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumif function is summing full range instead of cells matching criteria

    Something like this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    H
    1
    Jan 2015
    Feb 2015
    Mar 2015
    Jan 2015
    Apple
    184
    2
    Apple
    55
    62
    59
    3
    Cherry
    2
    100
    24
    4
    Grape
    11
    53
    98
    5
    Apple
    34
    86
    37
    6
    Cherry
    77
    67
    71
    7
    Grape
    76
    38
    82
    8
    Apple
    95
    52
    96
    9
    Cherry
    36
    10
    83
    10
    Grape
    30
    50
    24
    11
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    ------


    The column headers are the 1st of the month dates formatted to display as mmm yyyy.

    Cell F1 is also the 1st of the month date formatted to display as mmm yyyy.

    This formula entered in H1:

    =SUMPRODUCT(--(A2:A10=G1),INDEX(B2:D10,0,MATCH(F1,B1:D1,0)))

+ 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. Replies: 4
    Last Post: 07-26-2013, 03:38 PM
  2. Replies: 4
    Last Post: 06-08-2013, 01:52 PM
  3. Replies: 4
    Last Post: 08-22-2012, 12:18 PM
  4. How to use SUMIF on consecutive cells matching criteria
    By panamakevin in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-29-2009, 01:38 PM
  5. for SUMIF function, how do I use 2 sets of range & criteria
    By Bob in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-10-2006, 03:55 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