+ Reply to Thread
Results 1 to 6 of 6

return sales for specified month and department

  1. #1
    Registered User
    Join Date
    03-11-2010
    Location
    Bendigo, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    return sales for specified month and department

    Hi

    Im trying to work out the formula to return the sales for a specified department for a specified month. I want to be able change the month and department to get results from past months a well.

    Im stumped...
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: return sales for specified month and department

    Like so...

    The formula in B10 is an array formula, any changes you make, confirm them by pressing CTRL-SHIFT-ENTER to keep the array active, then copy the cell downward.

    The rest of the formulas are standard INDEX/MATCH formulas.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: return sales for specified month and department

    Hi Chanley,

    welcome to the forum.

    Instead of the report-type format, re-arrange your data in a simple table and then create a pivot table with filters for the date and type.

    see attached.

  4. #4
    Registered User
    Join Date
    03-11-2010
    Location
    Bendigo, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: return sales for specified month and department

    Hi Guys

    Thanks for your help. Your answers have prompted me to go one step further.

    What if i wanted to try and get the Cost of Goods Sold (COGS) figure as well? So i would now require the Sales figure and COGS figure for the specified month and department? I played around with the formulas and ideas you presented but couldnt work it out.
    Attached Files Attached Files

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: return sales for specified month and department

    Add another column in the data entry table for COGS and enter the COGS figure for each line. Then pull that into the pivot table.

    (this is based on the file I posted earlier, not the one in your last post)

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: return sales for specified month and department

    I would strongly recommend that you use the PivotTable & avoid Array Formulas which can be slow to calculate
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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