+ Reply to Thread
Results 1 to 5 of 5

Average with Multiple Criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Average with Multiple Criteria

    I am trying to figure out the correct way to average the number trips and spend by customers in a certain mileage radius over a 3 month period, and then populate those totals into specific segmented "spend" categories. My confusion is with the proper way to generate the correct average. Do I summarize the data for each month first, then divide by the number of months, or do I just average the entire data base.

    Attached is a sample of what I am trying to do. The yellow fields would be populated with the average for each category from the entire data set.

    Thanks in advance.
    Test Avg.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Average with Multiple Criteria

    See if this will get you heading inthe right direction - this is for Avg # of shoppers.

    E4=IFERROR(AVERAGEIFS($H$22:$H$3050,$H$22:$H$3050,">="&$B4,$F$22:$F$3050,"<="&E$1),0)
    G4=IFERROR(AVERAGEIFS($H$22:$H$3050,$H$22:$H$3050,">="&$B4,$F$22:$F$3050,"<="&G$1,$F$22:$F$3050,">"&E$1),0)
    both copied down

    You should be able to apply that to Avg # of shoppers

    Regarding an "annual" average, you need to calc that based on the total for the year. Trying to calc an annual average, based on monthly averages is mathematically incorrect
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Average with Multiple Criteria

    Thank you for your reply. For some reason this formula did not work.

    In regards to the average questions. I was trying to determine the average spend over a 3 month period vs. an entire calendar year. My sense is that would be mathmatically correct. The confusion I am having is trying to see if I need to first summarize each month, then divide by the number of months to create an average for those 3 months.... or generate an average based on the 3 month data set.

    I hope that better clarifies this.

    Thanks!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Average with Multiple Criteria

    I have attached your file with my formula included.

    As I said before, to calc, for instance, an annual average "spend", you need to sum the "spend" for all the months divided by the sum of the all the occurrences for all the months. You cannot calc an average for the year by averaging the monthly averages
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    07-04-2013
    Location
    United States
    MS-Off Ver
    Excel for Mac -V 16.33 -- Office 365
    Posts
    279

    Re: Average with Multiple Criteria

    Thank you for the update. I looked at the formulas and had a question.

    If I change cell H22 to $1500 it changes the value in both cells E4 and E5 to 1500. It should only change cell E4. Also, the averages should always be within the preset shopper spend ranges, right? For example, the results in cell E9 fall outside the range.

    Also, in columns titled Avg. # of trips (i.e. Column E), I was actually hoping to show the average number of vs. average spend, as the average spend would be a calculation shown in column P.

    I hope this makes sense as I appreciate your feedback.

    On a final note, just to clarify the correct way calculate the average, I am looking to just cacluate the average of 3 months and not a full year as this project is for specific promotions that compare the promo month the the activity from these same customers from the previous 3 (non-promo) months.

    Thanks again!

+ 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. Average numbers from multiple columns based on multiple criteria
    By abambi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-23-2015, 01:52 PM
  2. [SOLVED] Average with multiple criteria from
    By zdonner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-21-2014, 11:56 AM
  3. [SOLVED] Average If. multiple criteria
    By pytheus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 08:39 PM
  4. [SOLVED] AVERAGE with multiple criteria
    By jrlafrance in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2013, 03:02 PM
  5. Multiple Sheets Multiple Criteria Average Data
    By apauaie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-17-2013, 01:13 PM
  6. Calculate average for multiple ranges for multiple criteria
    By cesareit in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-05-2013, 01:33 PM
  7. Excel 2007 : Average if multiple criteria and contains
    By AFmonaco in forum Excel General
    Replies: 5
    Last Post: 02-24-2012, 12:47 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