If I have a block of cells such as A1:D5, what's the quickest way of multiping each cell by another number, 1.1?
If it doesn't need to be a macro, then just put =A1*1.1
into (say) D7, then drag the formula fill handle across, then down.
Are you asking how to do it in excel or how to do it in a VBA application? If you just want to do it in excel, [here is one way.][1]
[1]: http://office.microsoft.com/en-us/excel/HP030561411033.aspx#Multiply a range of numbers by a number
- Enter the multiplier in a cell
- Copy that cell to the clipboard
- Select the range you want to multiply by the multiplier
(Excel 2003 or earlier) Choose Edit | Paste Special | Multiply
(Excel 2007 or later) Click on the Paste down arrow | Paste Special | Multiply
Put the number you want to multiply by in a cell that is not in your range. Select the cell and "Copy" it to the clipboard. Next, select the Range A1:D5, and from the menu choose Edit|Paste Special. A dialog box will appear. In the "Operation" area, select "Multiply" and click "OK".