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!!
Bookmarks