Continuing sum formula

bamacwby

New Member
Joined
Sep 27, 2008
Messages
37
Office Version
  1. 365
If I have a number, say 1245 in A1, that is the number I want to start with and in B2 is the same number but I add a series of other numbers to B2 with the total in F4. With everyday I erase the series of numbers that were added to B2 but want to keep the total form F4 to be the new number in B2. I hope this makes sense. Thank you
 
Obviously, you are referring to a bunch of cells that are not shown in your screen print, as it only shows up to row 23.
In order to help, I think I would need to get a copy of your workbook, so I can see all the rows, and all the formulas, and try it the steps you are mentioning.
Are you able to upload your workbook to a file sharing site and provide a link to it here
Here you you
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
So, it sounds to me like you just want to copy the hard-coded value from C78 to I6. Is that right?

If so, you could copy the value from C78 to cell I6, while at the same time you could use the macro to clear out all the other cells you want cleared, i.e.
VBA Code:
Sub MyReset()

    'Copy value from C78 and paste in cell I6
    Range("I6").Value = Range("C78").Value
    
    'Clear out entries cells to start over
    Range("M18:M21").ClearContents
    
End Sub
You can clear out other cells too, by adding similar lines to the "ClearContents" one above.
 
Upvote 0
So, it sounds to me like you just want to copy the hard-coded value from C78 to I6. Is that right?

If so, you could copy the value from C78 to cell I6, while at the same time you could use the macro to clear out all the other cells you want cleared, i.e.
VBA Code:
Sub MyReset()

    'Copy value from C78 and paste in cell I6
    Range("I6").Value = Range("C78").Value
   
    'Clear out entries cells to start over
    Range("M18:M21").ClearContents
   
End Sub
You can clear out other cells too, by adding similar lines to the "ClearContents" one above.
Where do I copy those codes to?
 
Upvote 0

Forum statistics

Threads
1,224,872
Messages
6,181,501
Members
453,047
Latest member
charlie_odd

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