ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   automatically divid (https://www.excelbanter.com/excel-discussion-misc-queries/190436-automatically-divid.html)

Ali.Abughrabieh[_2_]

automatically divid
 
How I can make the number been divided automatically in the cell without
adding the divided number or make a formula like =A1/12 .

joel

automatically divid
 
You need to make a worksheet Change macro that when you enter data in certain
cells it will automatically will do the division. Usually you only want this
done in certain columns or certain rows and not the entire worksheet

Sub worksheet_change(ByVal target As Range)

If target.Column = 6 Then
Application.EnableEvents = False
target.Value = target.Value / 6
Application.EnableEvents = True
End If

End Sub

w

"Ali.Abughrabieh" wrote:

How I can make the number been divided automatically in the cell without
adding the divided number or make a formula like =A1/12 .



All times are GMT +1. The time now is 04:05 PM.

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