+ Reply to Thread
Results 1 to 4 of 4

Sum the cells value of every row that belong to a specific criterion

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    NEW YORK
    MS-Off Ver
    Excel 2008 for MAC
    Posts
    9

    Sum the cells value of every row that belong to a specific criterion

    Hi there,

    I am over-thinking it. I am sure it is simple but I can't get it alone, need help.

    Here is the thing:

    I have a spreadsheet listing revenue for specific products.
    Every single line is a revenue "event" and on this line one cell will contain the date.

    I want in another tab of the file to compile things for clear monitoring.

    I would like to have a chart likeExample.xlsx:
    product a brought $XXX on July 2012 $ZZZZ on August 2012
    prodcut b brought $YYYYon July 2012 $WWW on August 2012

    and so on...

    I know how to get the income generated for one type of product (with sumif)

    But I cannot find a way to get the income generated for one product on a specific month.

    An example file is attached for you to understand my gibberish.

    Thanks guys

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Sum the cells value of every row that belong to a specific criterion

    hi Triben. not sure what you mean when you say $XXX on July 2012 $ZZZZ on August 2012. if you meant on Aug 2012 for both, try this in I4:
    =SUMPRODUCT(($A$2:$A$27=$H4)*(TEXT($B$2:$B$27,"myyy")=TEXT(I$3,"myyy")),($C$2:$C$27))

    copy down & across. adjust range if necessary to accommodate more data. if i'm wrong, do show your desired results manually keyed in

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: Sum the cells value of every row that belong to a specific criterion

    Or try this :
    column I4, copy down & accross

    Please Login or Register  to view this content.
    Last edited by SDCh; 02-25-2013 at 12:35 AM.
    Click (*) if you received helpful response.

    Regards,
    David

  4. #4
    Registered User
    Join Date
    03-02-2011
    Location
    NEW YORK
    MS-Off Ver
    Excel 2008 for MAC
    Posts
    9

    Re: Sum the cells value of every row that belong to a specific criterion

    Thank you very much to you both, works great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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