+ Reply to Thread
Results 1 to 4 of 4

How to calculate average if a certain number of goods are sold

  1. #1
    Registered User
    Join Date
    10-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    24

    How to calculate average if a certain number of goods are sold

    Help with VBA.xlsx

    Hello,

    I would like to calculate the average "Price (SEK)" and average "Price (%)" in different size classes. The size is measured by no of purchases and the classes are:

    0-200
    201-400
    401-600
    600+

    Is it possible to calculate the average price of the customers that falls within the different classes given above? (see sheet 1)
    Attached Files Attached Files

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: How to calculate average if a certain number of goods are sold

    Added a column "Size class" (marked yellow) and a pivot table to your workbook. No vba.
    Would that be what your looking for?
    Not sure if the column headers translate correctly. I'm using a Dutch version of Excel.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    10-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: How to calculate average if a certain number of goods are sold

    I saw that I uploaded the wrong file... The thing is that I am thinking of doing it in VBA because it is a macro that I will use several times on more data. Please have a look at this new file.
    Attached Files Attached Files

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: How to calculate average if a certain number of goods are sold

    Here's an other edited workbook.
    Put in a user defined function and used it in the averages table.
    Also introduced names for the ranges for readablity.
    Attached Files Attached Files

+ 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. Calculating Asking Price Based on Cost of Goods Sold
    By buddy5954 in forum Excel General
    Replies: 13
    Last Post: 04-14-2011, 02:34 AM
  2. Costs Price Profit and Cost of goods sold
    By kraysellz in forum Excel General
    Replies: 1
    Last Post: 10-24-2010, 12:56 PM
  3. cost of goods sold formula
    By kim.wilson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-04-2010, 04:48 PM
  4. array formulas to determine cost of goods sold
    By jennyp6606 in forum Excel General
    Replies: 2
    Last Post: 03-05-2008, 05:58 PM
  5. Complex Array Formulas for cost of goods sold valuation
    By jennyp6606 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-05-2008, 08:22 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