Vba increase cell value by 5%

VBA learner ITG

Active Member
Joined
Apr 18, 2017
Messages
267
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all,

I was wondering if i could get your advice.

Is there a way to automatically increase a numerical value in "column A" by 5% without having to add another column to do the calculation within VBA.

I haven't come across any Google topics that can answer this question.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Not sure if you want to multipy a single value in column A, or a range of values.
One way to do a range of values (a single value would be even simpler, just the one line):
Code:
Sub Test()

    Dim cell As Range

    For Each cell In Range("A1:A10")
        cell.Value = cell.Value * 1.05
    Next cell
    
End Sub
Note that this can be done even easier WITHOUT VBA and without an extra column.
Just type 1.05 in any blank cell, highlight that cell and select Copy. Then, select all the values in column A, right-click, and select Paste Special -> Multiply -> OK.
That will multiple all those selected values by 1.05 at once (in place).
 
Last edited:
Upvote 0
This is perfect.

I spent a good few hours trawling through various Google posts and forums to see if there was a leaner way of achieving this and you have answered my question!




Not sure if you want to multipy a single value in column A, or a range of values.
One way to do a range of values (a single value would be even simpler, just the one line):
Code:
Sub Test()

    Dim cell As Range

    For Each cell In Range("A1:A10")
        cell.Value = cell.Value * 1.05
    Next cell
    
End Sub
Note that this can be done even easier WITHOUT VBA and without an extra column.
Just type 1.05 in any blank cell, highlight that cell and select Copy. Then, select all the values in column A, right-click, and select Paste Special -> Multiply -> OK.
That will multiple all those selected values by 1.05 at once (in place).
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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