Hi,
I have values:
<tbody>
</tbody>
equation should looks:
result = 20 * 1.02 = 20.4
result = 30 * 1.05 = 31,5
result = 10 * 1.4 = 14
How can I do it into Vba? Because I doing now as below: (result is the same)
I have values:
Values (col a) | Percent (col b) | Result (col c) |
20 | 2 | 20.4 |
30 | 5 | 31.5 |
10 | 40 | 10.4 |
<tbody>
</tbody>
equation should looks:
result = 20 * 1.02 = 20.4
result = 30 * 1.05 = 31,5
result = 10 * 1.4 = 14
How can I do it into Vba? Because I doing now as below: (result is the same)
Code:
ws.Range("C2").Value = (ws.Range("A2").Value * ws.Range("B2").Value / 100 ) + ws.Range("A2").Value
ws.Range("C3").Value = (ws.Range("A3").Value * ws.Range("B3").Value / 100 ) + ws.Range("A3").Value
ws.Range("C4").Value = (ws.Range("A4").Value * ws.Range("B4").Value / 100 ) + ws.Range("A4").Value