+ Reply to Thread
Results 1 to 5 of 5

Summing columns based on date?

  1. #1
    Registered User
    Join Date
    01-14-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    3

    Summing columns based on date?

    I need some help with a macro. I have data in the following format

    date|value1|value2|value3

    The dates are month and year and there are multiple entries for each. What I need to do is to add all the value1's, value2's, and value3's for each date. I need it to show in four new columns with the date and each sum.

    So for example
    111964 2767 913 718
    111964 2122 700 10
    111964 9224 3044 0
    121964 14927 4926 3270
    121964 9681 3195 10
    121964 16335 5391 65


    There are three entries of each value for 11/1964. I need a sum of each column. I need to do this for the entire spreadsheet of about 50K entries.

    Any help would be GREATLY appreciated!

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    It sounds like a pivot table would do the job. Why do you think you need a macro?

  3. #3
    Registered User
    Join Date
    01-14-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    3
    Because I'm not an excel expert and don't know what a pivot table is

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    Fair enough.

    Pivot tables are not very complicated. Here's one guide (plenty of others via Google): http://www.cpearson.com/excel/pivots.htm

    Post a sample workbook if you get stuck.

  5. #5
    Registered User
    Join Date
    01-14-2009
    Location
    Texas
    MS-Off Ver
    Excel 2003
    Posts
    3
    thanks very much. That was not difficult at all.

+ 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