+ Reply to Thread
Results 1 to 12 of 12

Finding a Daily Average

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Finding a Daily Average

    In the attached dataset, I am trying to find the most efficient way to get both average weight and volume per location per day. Is there an easier way than doing multiple levels of the "Subtotal" function?

    The end result should be:

    Location A: | xxx lbs/day | xxx pieces/day
    Location B: | xxx lbs/day | xxx pieces/day

    Thanks so much!

    Seaplane Jack

    ExcelForum Avg per Day.xlsx

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Finding a Daily Average

    Hello
    In your example file,try:

    Please Login or Register  to view this content.
    Copied across from H9 and down to I10.

    DBY

  3. #3
    Registered User
    Join Date
    06-13-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Finding a Daily Average

    I'm not sure that's working exactly as I was expecting. For example, if we look at only weight for Jan 3rd and 4th for Location A (the first 5 rows of data), we get:

    Total weight for Location A for Jan 3rd = 120.6
    Total weight for Location A for Jan 4th = 533.0
    Average weight per day for these two days is then 326.8.

    I may not have explained myself correctly in my first post. Does this make sense?

    Thanks, DBY!

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Finding a Daily Average

    Hi
    On your example file you didn't specify any particular date to average, just: Location; Avg Wt/Day; Avg Pcs/Day. Where do you want to stipulate the date to average?

  5. #5
    Registered User
    Join Date
    06-13-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Finding a Daily Average

    DBY,

    I need to get the totals (weight & pieces) for each day for each Location and then divide that by the total number of shipping days included for each Location. The full dataset includes 300+ Locations and over 100k rows of data (records) from varying dates. For a given date there could be anywhere from one to several records.

    Thanks, again...

    SJ

  6. #6
    Registered User
    Join Date
    06-13-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Finding a Daily Average

    A simpler way to say it may be: I need to total all of the weights for a given Location, then divide that by the number of unique shipping dates for that Location. I'm currently sorting by dealer and then by date, then nesting subtotals to get the sum of both pieces and weight at each change in Ship Date, and then running a count on the number of Ship Dates. It's working, but very cumbersome as I have to copy subtotals to several different worksheets to get to the end result.

    ~SJ

  7. #7
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Finding a Daily Average

    I think I see more clearly. It would appear you also need a unique count of days for each Location to divide the totals by. Have you considered using Pivot tables?

  8. #8
    Registered User
    Join Date
    06-13-2012
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Finding a Daily Average

    I did start off with Pivot Tables but was not able to manipulate the data to get the results - I'm sure it's "pilot error" on my end. I couldn't figure out how to get the unique count for shipping days.
    Last edited by Seaplane Jack; 07-11-2013 at 01:00 PM.

  9. #9
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Finding a Daily Average

    You can use formulas to get a unique count but with 100k rows of data the Pivot option might be best. I''ll upload an example of a pivot from your file for you to consider. But in the meantime you might get some other suggestions from forum members.

    DBY

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

    Re: Finding a Daily Average

    show an excel file, without confidentional information.

    please also add the desired (expected) result.

    then we can see what we can do for you.

    I see you add an example in #1. I will take a look at it.
    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.

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

    Re: Finding a Daily Average

    Maybe like thsi (pivot table)

    You didn't add the desired result, so i couldn't check the result.

  12. #12
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Finding a Daily Average

    My take on this is different to oeldere's. The 'Pivot Summary' sheet shows the example you quoted for the 3rd and 4th of Jan filtered.

    DBY
    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)

Tags for this Thread

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