Help with macro to sum two rows for YTD

ccofmars

New Member
Joined
May 20, 2010
Messages
44
HI,

I am trying to create a macro to sum numbers to YTD cells. So I am tryind to do the following:

let say in A1:F1, i have the following value:

A1 B1 C1 D1 E1 F1
1 2 3 4 5 6

my YTD row has the following numbers:
A5 B5 C5 D5 E5 F5
6 5 2 6 4 2

now I want my YTD row to add the number in the cell with the values in row 1.

For instance:

A5 (YTD) is now 7 6+1 =7

B5 (YTD) is now 7 5+2 = 7

C5 is now 5 3+2=5

etc....

can someone help? i hope i make sense.

thank you


<COLGROUP><COL style="WIDTH: 48pt" span=6 width=64><TBODY>
</TBODY>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Apparently I did not make any sense in my previous post. So lets try again. I am trying to create a row that will hold YTD data. everytime I update lets say row 1, I would like the value of row 1 to be added to the value in the YTD row. i know it is possible but I cant figure how to create the code for it. please help! this will save me alot of time very month.

thanks.
 
Upvote 0

Forum statistics

Threads
1,215,947
Messages
6,127,867
Members
449,410
Latest member
adunn_23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top