+ Reply to Thread
Results 1 to 9 of 9

Analysis

Hybrid View

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    63

    Analysis

    Dear Friends

    Please see the attached Excel sheet, from the data of sheet # 2, I wanted to show sales by month in sheet no.1
    Kindly assist.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,880

    Re: Analysis

    Seems like a simple pivot table should be able to do this (https://www.excel-easy.com/data-****...ot-tables.html ):

    1) Select the source table in sheet 2 -> Insert -> Pivot table -> choose desired pivot table options.
    2) Select item code as the row labels, date as the column labels, and sum of sales as the value field.
    3) Select the column labels -> Pivot table tools -> Options -> group selection -> group by month.

    Will that work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Analysis

    You could put this formula in B9 of Sheet1:

    =SUMIFS(Sheet2!$D:$D,Sheet2!$B:$B,">"&EOMONTH(B$8,-1),Sheet2!$B:$B,"<="&B$8,Sheet2!$C:$C,$A9)

    then copy across and down as required.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    07-23-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Analysis

    Dear Pete,

    Thanks, it works. But need to validate; did that through Pivot Table and the Net total doesn't match?!
    Would be able to guide me through the formula? As a matter of fact, I tried SumIFS in simple terms earlier,

    Many thanks!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Analysis

    My formula looks to see if the dates in column B of Sheet2 are between the last day of the previous month and the date given on row 8, and that column C is the same Product family, and if so it adds the values in column D.

    Hope this helps.

    Pete

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Analysis

    I've just noticed, though, that in N8 you are adding 366 to the date in B8, so when you get to P8 you have 1st April 2017 instead of 31st March - this throws all the other dates out. The date you have in C8 is actually 28th February 2016, rather than 29th. It would be better to use this formula in C8:

    =EOMONTH(B8,1)

    then copy that all the way across.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    07-23-2013
    Location
    Qatar
    MS-Off Ver
    Excel 2010
    Posts
    63

    Re: Analysis

    Thanks Shortly!
    Yes, I indeed tried that. It consolidates year 16,17,18 under each month. But, I need them to see by month by year.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Analysis

    Select Months and Years in the grouping options.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Analysis

    in Sheet1!B9
    =SUMPRODUCT((Sheet2!$C$2:$C$10000=$A9)*(YEAR(Sheet2!$B$2:$B$10000)=YEAR(B$8))*(MONTH(Sheet2!$B$2:$B$10000)=MONTH(B$8))*(Sheet2!$D$2:$D$10000))
    copy across and down the grid
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ 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: 1
    Last Post: 03-06-2014, 11:00 AM
  2. Replies: 2
    Last Post: 06-28-2013, 08:43 AM
  3. Data Analysis- advanced pivot functions for employee analysis
    By Dsankie in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-10-2013, 12:30 AM
  4. DCF analysis
    By bswahyu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2011, 03:30 AM
  5. Analysis
    By bj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  6. Analysis
    By sirgresley in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  7. Why " data analysis plus " override " data analysis " once instal.
    By Alfred H K Yip in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2005, 05:06 AM
  8. Analysis ToolPak installed but no Data Analysis option
    By Eric Stephens in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 06:06 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