Results 1 to 17 of 17

Macro to sum values in one column based on data in another colum while ignoring blanks

Threaded View

The Machinist Macro to sum values in one... 11-12-2012, 01:41 PM
oeldere Re: Macro to sum values in... 11-12-2012, 01:50 PM
The Machinist Re: Macro to sum values in... 11-12-2012, 02:22 PM
oeldere Re: Macro to sum values in... 11-12-2012, 02:40 PM
AB33 Re: Macro to sum values in... 11-12-2012, 04:42 PM
The Machinist Re: Macro to sum values in... 11-13-2012, 08:20 AM
The Machinist Re: Macro to sum values in... 11-13-2012, 08:55 AM
oeldere Re: Macro to sum values in... 11-13-2012, 08:31 AM
oeldere Re: Macro to sum values in... 11-13-2012, 09:01 AM
The Machinist Re: Macro to sum values in... 11-13-2012, 09:21 AM
oeldere Re: Macro to sum values in... 11-13-2012, 09:28 AM
The Machinist Re: Macro to sum values in... 11-13-2012, 09:32 AM
oeldere Re: Macro to sum values in... 11-13-2012, 09:39 AM
The Machinist Re: Macro to sum values in... 11-15-2012, 11:51 AM
oeldere Re: Macro to sum values in... 11-15-2012, 02:18 PM
The Machinist Re: Macro to sum values in... 11-15-2012, 02:55 PM
oeldere Re: Macro to sum values in... 11-15-2012, 03:25 PM
  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003
    Posts
    10

    Macro to sum values in one column based on data in another colum while ignoring blanks

    Hi Everyone,

    Being somewhat new to VBA, I am having great difficulty wrapping my head around my latest problem. I have attached a simplified version of the project I am working on.

    The sheet named "Times" contains 3 columns of importance, titled "Stage", "Time A", "Time B". I want to use a macro to sum all of the values in "Time A" column that are associated with each specific stage number. Also, using a macro, sum all of the values in "Time B" column that are associated with each specific stage number. The macro would also have to create the chart on the "Summary" sheet.
    The end result would have to look something like what is on the sheet named "Summary". The colour coding was used to help visualize which cells are related to each specific stage number. For example, all Time A and Time B cells associated with Stage 10 are coloured gold. As can be seen, there are blank cells in many of the Time columns, as well as in the Stage column. Also, Stage 10 and Stage 30 have additional entries near the bottom of the table. On the "Summary" sheet, all the "Time A" values would be summed (2.20 + 4.50 + 6.00 + 0.25 + 0.50 = 13.45), as would the "Time B" values (4.0 + 0.5 + 0.5 = 5.0)
    Colour coding is not required on the working charts.

    Note:
    The chart on the "Times" sheet is dynamic (although not shown), such that the number of stages and associated Times can vary, by inserting or deleting rows of the chart.

    I look forward to your responses.
    Thanks for you help!!
    Attached Files Attached Files

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