Hi guys, I need a macro that will multiply all cells in a column and round the results.
For example,
A1:A30 is the range
Constant is found in A33
All cell in the range will be multiplied with A33 and the result should be rounded (it will be an int number). The result will overwrite the initial cell.
Thanks for the help
[A1:A30] = [index(int(A1:A30*A33),)]
thank you for the quick reply snb, but unfortunately I don't know how to use that
Hi,
..or another approach
Range("A33").Copy Range("A1:A30").PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply
Richard Buttrey
If this was useful then please rate it appropriately.
Click the small star iconat the bottom left of my post.
this part i know, managed to do it with record macroRange("A33").Copy Range("A1:A30").PasteSpecial Paste:=xlPasteAll, Operation:=xlMultiply
normally it would bebut this would mean the result is in a different cell=ROUND((A1*A33);0)
Last edited by ciprian; 06-06-2011 at 05:01 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks