+ Reply to Thread
Results 1 to 6 of 6

Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION)

  1. #1
    Registered User
    Join Date
    06-17-2015
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    43

    Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION)

    Kindly help me, please.

    I am looking for the last Six Month Total Qty , from DataBase sheet , by looking up "Month Date + Item Code".

    Eg. If current month is July 2015 , Sum Total qty for Jan to June 2015 (the last 6 Months) .
    If next month is August, want to get data automatically of Feb to July .

    I am trying to use with Sumproduct . But, I can't get the correct data . Help me to correct the formula, please , or kindly give me the right formula.

    TEST FORMULA:

    1) SUMPRODUCT((ROUNDUP(MONTH(DATABASE!$C$2:$C$15000)/6,0=1)*(DATABASE!$A$2:$A$15000=B27)*(DATABASE!$E$2:$E$15000))))


    2) SUMPRODUCT((DATABASE!$A$2:$A$15000=B27)*(MOD(--MONTH(DATABASE!$C$2:$C$15000)/6,0))*(DATABASE!$E$2:$E$15000))

    3) SUMPRODUCT((DATABASE!$C$2:$C$15000=B4)*(SUMPRODUCT((DATABASE!$C$2:$C$15000>DATE(2015,1,1)),(DATABASE!$C$2:$C$15000<DATE(2015,6,30))*(DATABASE!$E$2:$E$15000))))



    Here is attached of the excel sheet.
    Thanks in advance !
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION

    With a pivot table.

    See the attached file.

    notice I add a column in the database to get the month.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION

    See attached. I have added 2 fields in L2 & M2 for Start/End of 6 month period.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-17-2015
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    43

    Re: Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION

    Thanks, John (JohnTopley). This is what I wanted. You helped me again ! Thanks a lot !

  5. #5
    Registered User
    Join Date
    06-17-2015
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    43

    Re: Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION

    Thank you for your advise Oeldere. Appreciated for your effort and time.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Please help to Find the last 6 Months Total Qty from Monthly Data (SUMPRODUCT FUNCTION

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Find months between start and end dates and multiple the monthly revenue
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2013, 05:22 PM
  2. Replies: 9
    Last Post: 10-22-2012, 02:03 PM
  3. Replies: 2
    Last Post: 07-08-2010, 04:05 AM
  4. Using a SumProduct Count to find a SumProduct Total?
    By XL021710 in forum Excel General
    Replies: 3
    Last Post: 02-18-2010, 08:31 AM
  5. Trying to total payments for months, need help with my function
    By unofarmbob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-12-2006, 08:39 AM

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