Book1.xlsb | |||||||
---|---|---|---|---|---|---|---|
E | F | G | H | I | |||
1 | 3353 | ||||||
2 | |||||||
3 | |||||||
4 | |||||||
5 | 3352.76 | ||||||
6 | |||||||
Sheet3 |
Sub RoundOffset()
Range("E5").Offset(-4, 4).Value = Round(Range("E5").Value, 0)
End Sub
Book1 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | |||
1 | 1609.18 | 1609.18 | gf | MD-60 V2, 1.2mm gauge decking, 150mm deep | 3353 | m2 | ||||||
2 | 1267.12 | 1267.12 | 1f | |||||||||
3 | 476.46 | 476.46 | 2f | |||||||||
4 | ----------- | |||||||||||
5 | 3352.76 | |||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
I1 | I1 | =ROUND(SUM(E1:E3),0) |
E5 | E5 | =SUM(E1:E3) |
Maybe because of this part of the questionAssuming @MARK858 cell references are correct, and this is the only thing you want to accomplish, why not just do it with a formula...
Is there a simple macro to copy a number
seems more fitting to a vba offset rather than a formula, where you are putting the formula in a known cell rather than in relation to the original cells positionand place in another column
Yes, I get that part (see my post #2), but the OP is not exactly forthcoming with details, hence my question... I guarantee there is more to this than what is conveyed in Post #1.Maybe because of this part of the question
I'm sure there is but I posted the code because the OP specifically asked for code, and with no more details (or reasons why they asked for a macro i.e. it might be part of a bigger procedure) I stuck to what the OP has asked for (I also note that you suggested using the macro recorder to get the code needed)I guarantee there is more to this than what is conveyed in Post #1.