+ Reply to Thread
Results 1 to 5 of 5

Adding the contents of rows with the same date

  1. #1
    Registered User
    Join Date
    06-11-2007
    Posts
    4

    Adding the contents of rows with the same date

    Hopefully someone can help me with this:

    I have a table of data with the rows sorted by date. There are multiple entries with the same date, and I need to add the contents of each row with the same date, preferably into another table so I don't lose any of the original data.

    I can't find any VBA function that would do this. Can anyone help me out with the code?

    Thanks
    Greg

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    Why not use a pivot table if you want to sum up several dates, otherwise the SUMIF function.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    06-11-2007
    Posts
    4
    Thanks Sweep, I tried the SUMIF function, but I can't figure out how to set the criteria as equal to

    so far I have =SUMIF(A6:$A$9,"=",C6:$K$9), where column A is the date, and column C thru K contains the data.

    I want to add columns C:K for every row that has the same date, and the formula that I wrote doesn't seem to work

  4. #4
    Registered User
    Join Date
    06-11-2007
    Posts
    4
    *bump*

    Can anyone help make the above formula work?

    or any other suggestions for macros?

    Thanks

  5. #5
    Registered User
    Join Date
    06-11-2007
    Posts
    4
    Update-

    SUMIF doesn't work because it puts the results in one cell. What I need is to total each column in every set of rows with the same date, and I think I need to use VBA, but I can't seem to find a function that does this.

+ 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