ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do i create a percantage formula in a cell? (https://www.excelbanter.com/excel-discussion-misc-queries/143480-how-do-i-create-percantage-formula-cell.html)

byway

how do i create a percantage formula in a cell?
 
Hi
how do I create a formula as below

Enter a value in a cell; E.g Cell C5 and the formula automatically multiplys
the value by say 30% and keeps the result in cell C5.

Many thanks

Gary''s Student

how do i create a percantage formula in a cell?
 
Use the following event macro:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("C5"), Target) Is Nothing Then
Exit Sub
End If
Application.EnableEvents = False
Target.Value = 0.3 * Target.Value
Application.EnableEvents = True
End Sub

--
Gary''s Student - gsnu200723

David Biddulph[_2_]

how do i create a percantage formula in a cell?
 
You can't do that by a formula, but if you put 30% in a cell, copy it, then
select C5, edit/ paste special/ multiply, that will do it.
--
David Biddulph

"byway" wrote in message
...
Hi
how do I create a formula as below

Enter a value in a cell; E.g Cell C5 and the formula automatically
multiplys
the value by say 30% and keeps the result in cell C5.

Many thanks





All times are GMT +1. The time now is 09:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com