+ Reply to Thread
Results 1 to 6 of 6

SUMIF criteria - adding all months

  1. #1
    Registered User
    Join Date
    06-13-2013
    Location
    Nowhere
    MS-Off Ver
    Excel 2010
    Posts
    4

    SUMIF criteria - adding all months

    I currently have a dataset like attached :

    I would like to sumif based on the date that I enter in the cell "B1" and based on the fruit name.
    Eg. if I enter 14, my file should be able to cumulative sales of "Apple" until Day 14.

    I tried SUMIF, but it only returns the figure in 1st column and leaves all the other days.
    SUMPRODUCT also no luck

    Could you please advice how to sum based on the "Fruit name" & based on the day?
    Thank you for your attention & support

  2. #2
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: SUMIF criteria - adding all months

    attach a sample file to understand better ..

  3. #3
    Registered User
    Join Date
    06-13-2013
    Location
    Nowhere
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: SUMIF criteria - adding all months

    Sorry for some reason, I am not able to attach the file..
    But basically the format goes like below :

    | A | B | C | D | E | F |.....
    1 | . | 4 | . | . | . | . |
    2 | . | . | . | . | . | . |
    3 | Day | 1 | 2 | 3 | 4 | 5 |.........| 31 |
    4 | Fruit | . | . | . | . | . |
    5 | Apple | 20 | 12 | 30 | 7 | 3 |.........| 10 |
    6 | Orange | 10 | 23 | 45 | 17 | 5 |.........| 20 |
    7 | Pear | 5 | 5 | 5 | 5 | 5 |.........| 5 |
    8 | Mango | 3 | 2 | 3 | 2 | 3 |.........| 3 |

    In cell B1, if I enter 4 (sales amount as of the 4th day of the month), my formula should be able to return
    Basically it should be able to find using 2 criteria (1st one being the day of the month, and the 2nd one being Fruit name)

    Apple : 69
    Orange : 95
    Pear : 20
    Mango : 10
    Last edited by kalam1989; 06-15-2016 at 05:25 AM.

  4. #4
    Forum Contributor
    Join Date
    06-02-2016
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    327

    Re: SUMIF criteria - adding all months

    sorry brother,

    I can't understanding your problem.

    try to share via google drive ..

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: SUMIF criteria - adding all months

    Hi,

    Please upload the workbook.

    Have you considered a Pivot Table which may well give you what you want without the need for formulae?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

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

    Re: SUMIF criteria - adding all months

    Try this...

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    4
    2
    ------
    ------
    ------
    ------
    ------
    ------
    ------
    3
    4
    Day
    1
    2
    3
    4
    5
    6
    5
    Item1
    64
    29
    65
    57
    73
    90
    6
    Item2
    3
    56
    32
    25
    4
    68
    7
    Item3
    27
    5
    52
    28
    54
    51
    8
    9
    10
    Item1
    215
    11
    Item2
    116
    12
    Item3
    112


    This formula entered in B10 and copied down:

    =SUM(INDEX(B$5:G$7,MATCH(A10,A$5:A$7,0),1):INDEX(B$5:G$7,MATCH(A10,A$5:A$7,0),B$1))

    If B1 is an empty cell the formula will sum the entire range.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] Sumif months?
    By PedroSchulz in forum Excel General
    Replies: 4
    Last Post: 10-08-2014, 02:43 PM
  2. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  3. [SOLVED] SUMIF or SUMIFS adding time where criteria is in multiple columns
    By 66ev in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-14-2013, 02:21 PM
  4. SUMIF?? Adding cells based on criteria
    By dawnmau in forum Excel General
    Replies: 2
    Last Post: 03-19-2010, 12:09 PM
  5. Adding another criteria in sumif
    By Grimzby in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2008, 12:33 PM
  6. Adding months to dates should account for 28-30-31 day months
    By Graham in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2006, 08:10 AM
  7. [SOLVED] SUMIF for Dates / Months ?
    By ZMAN in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 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