+ Reply to Thread
Results 1 to 17 of 17

Sum Values Based on Month and Product

  1. #1
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Sum Values Based on Month and Product

    Hello,

    I had Table with 3 columns with heading Date,Products and price,what i am trying to do is
    to create a summary based on this table,it should add the values of the month separately based
    on the date of my table..

    Thanks,
    Ak

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Values Based on Month and Product

    Hi Akbar,

    I would suggest you to use a pivot table in this case. Upload a sample file if you face any issue. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    Hi Dileep i dont want to use a pivot table just looking for a formula or a macro which
    can help..please find the attached file..

    Thanks,
    Ak
    Attached Files Attached Files

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Values Based on Month and Product

    Hi Akbar,

    See the attached file where I have provided few formulas to achieve the results

    Further to this, you can use vlookup to obtain budgets for apple, oranges if you wish

    Trial Copy 1.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    Hi Dilipandey,,

    But when i copy down the formula and when click enter it gives me #VALUE..

    Thanks,
    Ak

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum Values Based on Month and Product

    Hi AK.

    1) As i see that Dilip is offline, his formula in H8, is Array. So you need to confirm with Control+Shift+Enter. Not just Enter.

    2) Do you also want to extract the months Automatically, or this is OK for you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    I need to extract the months automatically as well..

    Thanks,
    Ak

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum Values Based on Month and Product

    Ok. Give me some time.

  9. #9
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    okkk fine..

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum Values Based on Month and Product

    So my suggestion is here.

    In every column of your table the results are with formulae, except in column G that there is a validation list for choosing the fruits that you want to see.

    Formula in column F is an Array Formula, so you need to confirm with Control+Shift+Enter. The other formulae are normal. Just Enter.

    I also made a small Table with fruits budget.

    Let me know if there is something that you don't understand.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    Fotis that seems to be fine..except the sum for the months together..can you have a look on that please..

    Thanks,
    Ak

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum Values Based on Month and Product

    What do you mean, Ak?

    Where is this?

  13. #13
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    Within the valiadtion list just i need to add "Total Expenses" and in the exepenses column total sum for the
    corespondent month too..Hope you understand..

    F8: June
    G8:Total Expenses
    H8sum of expenses for the month of june


    Thanks,
    Ak

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum Values Based on Month and Product

    Quote Originally Posted by akbar View Post
    Within the valiadtion list just i need to add "Total Expenses" and in the exepenses column total sum for the
    corespondent month too..Hope you understand..

    F8: June
    G8:Total Expenses
    H8sum of expenses for the month of june


    Thanks,
    Ak
    Unfortumately NO. I am comfused..

    In G8 what is the expcted result? 75.9 ?

    In H8 ? 4 ?

    If not, pls upload my sample and show to me where you want and what is this.

  15. #15
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    Fotis just see the attachment and i had comments on H8..

    Thanks,
    Ak
    Attached Files Attached Files

  16. #16
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Sum Values Based on Month and Product

    Look at the example, Ak.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    02-04-2008
    MS-Off Ver
    Microsoft Office 2007
    Posts
    261

    Re: Sum Values Based on Month and Product

    That is fabulous work..it helps fotis...

    Thanks,
    Ak

+ 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