+ Reply to Thread
Results 1 to 10 of 10

Sum up yearly data from various date

  1. #1
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Sum up yearly data from various date

    Hi guys,

    I'm having a data table that contains various data from different date. I would like to sum all the data into the summary sheet which consolidate into yearly data. PLease help me out if you know how to come up with the formula like that. I'm trying INDEX, MATCH and SUMIFS functions but I don't know how to put all these formulas into one.

    Attached is the file. SAMPLE.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Sum up yearly data from various date

    tantcu,

    I'm fairly certain I can help you here, but before I do so, would you mind uploading your spreadsheet again, after removing what appear to be all "0" values between columns E to DM. I'm working on a laptop here, but even if I wasn't, uploading a sheet with over 100 columns which only appear to contain zero values before getting to your data is no encouragement to assist you.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

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

    Re: Sum up yearly data from various date

    See if the attached file (with VBA) is what you're up to.

    The macro is ready if the cursor is in cell A (on the sheet output).

    Please reply.
    Attached Files Attached Files
    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.

  4. #4
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Sum up yearly data from various date

    Hello oeldere, thank you for the macro. I tried to run the macro code again and it reported error for typing mismatch and direct debuger to this line " If Sheets("output").Range("E" & rsht2).Value = 0 Then". Do you know what the problem is?

  5. #5
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Sum up yearly data from various date

    Quote Originally Posted by BB1972 View Post
    tantcu,

    I'm fairly certain I can help you here, but before I do so, would you mind uploading your spreadsheet again, after removing what appear to be all "0" values between columns E to DM. I'm working on a laptop here, but even if I wasn't, uploading a sheet with over 100 columns which only appear to contain zero values before getting to your data is no encouragement to assist you.
    Hi BB1972, sorry for a lot of 0 values, I uploaded those data directly from the database so it results a lot of 0s filling in empty blanks. Did you come up with the formula or macro code? BTW the spreadsheet is supposed to have these 0s, can you include those 0s in the calculation?

  6. #6
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Sum up yearly data from various date

    Hi tanctu

    Quote Originally Posted by tantcu View Post
    Hi BB1972, sorry for a lot of 0 values, I uploaded those data directly from the database so it results a lot of 0s filling in empty blanks.
    I understand, however a sample sheet would generally contain a small, manageable sample of data. My solution involves using a formula only, and you'll be able to adjust the ranges to suit your entire data range when you apply it to your master sheet.

  7. #7
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Sum up yearly data from various date

    This is a new spreadsheet. Thank you for helping. SAMPLE.xlsx

  8. #8
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Sum up yearly data from various date

    Quote Originally Posted by BB1972 View Post
    Hi tanctu



    I understand, however a sample sheet would generally contain a small, manageable sample of data. My solution involves using a formula only, and you'll be able to adjust the ranges to suit your entire data range when you apply it to your master sheet.
    This is a new spreadsheet. Thank you for helping Attachment 209029[/QUOTE]

  9. #9
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Fort Worth, Texas
    MS-Off Ver
    Excel 2010
    Posts
    378

    Re: Sum up yearly data from various date

    Hey guys, the post still did not have final solution yet. Could anyone know the formula for this? I really need this help. Thanks

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

    Re: Sum up yearly data from various date

    Below the macro I used.

    I don't get any error.

    See the attached file.


    Please Login or Register  to view this content.
    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)

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