+ Reply to Thread
Results 1 to 7 of 7

Daily data automatically totaled in new sheet without dragging / re-adding.

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    10

    Daily data automatically totaled in new sheet without dragging / re-adding.

    Hello excelforum!

    I think I have an easy one for ya today. Each day I get a set of data showing the city an item came from and how many items came from that city. Each day I put this data into a workbook underneath the previous day's data. So sheet 1 looks like this:

    Day 1
    city # #
    city # #
    city # #

    Day 2
    city # #
    city # #

    Day 3
    city # #
    city # #
    city # #
    city # #
    city # #
    city # #

    This continues through the whole month. Each day could have 2 entries, or 20 entries; some of which repeat daily, and others that don't. My question is; is it possible to have sheet 2 contain a master list of all the cities, and each time I paste another day into sheet 1 it updates sheet 2's totals?

    Right now if I want to get a monthly total I have to copy and paste each day into a new sheet, then sort it all by city then use the subtotal function, then copy and paste that data, then delete all the blank rows, then make it pretty. I'm thinking there is a better way that I just don't see.

    Example workbook attached.

    Thank you in advance for all the help.
    Attached Files Attached Files
    Last edited by Nerfmagnet; 04-23-2013 at 01:02 PM. Reason: Solved

  2. #2
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Daily data automatically totaled in new sheet without dragging / re-adding.

    I would reccommend restructuring your original table, so that each line has the date, place, and volume.
    A Pivot table becomes very easy to implement.
    I also added a filter, so that you can either select all (to View April's Totals), or select a specific day.
    Attached Files Attached Files
    Please click the * icon below if I have helped.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Daily data automatically totaled in new sheet without dragging / re-adding.

    Ensure that column 1 does not have any blanks in it, that is ensure that all the rows have a date in them. Then you can easily use pivot tables on a different sheet. Each time you update data in the sheet, you refresh the pivot table and the totals update.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    04-09-2013
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    10

    Re: Daily data automatically totaled in new sheet without dragging / re-adding.

    Quote Originally Posted by Melvinrobb View Post
    I also added a filter, so that you can either select all (to View April's Totals), or select a specific day.
    This makes it so I can even select specific weeks, or even just every monday!

    eeeeeeeeeeee
    ^ That's a girly squeel coming from a grown man.

    Now if Mr. Boss man is like "I want the numbers for the first 2 weeks in April" it won't take me half an hour!

    When I read "pivot table" in the past I thought it was an actual table (chart). I'm going to go read up on these things as I might could use them in other places.

    Thank you so much. I'll go mark this as solved.

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Daily data automatically totaled in new sheet without dragging / re-adding.

    Won't take long at all. You could make formulas to do all of this, but it would take time, and the formatting would not automatically adjust instantly.
    Assuming you are in Excel 2010, I would also suggest reading up on Slicers. Makes the filtering of pivot tables that much better.
    Attached Files Attached Files

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Daily data automatically totaled in new sheet without dragging / re-adding.

    And also dynamic named ranges, so you dont have to change the pivot source data each time. You can just refresh and it auto updates.

  7. #7
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: Daily data automatically totaled in new sheet without dragging / re-adding.

    Definitely true arlu.
    I'm not quite comfortable with dynamic named ranges yet. I find a good alternative is to simply "Format as Table".

+ 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