Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 7
Default Self Calculation

Is it possible to set a format to a cell so that if I enter a value it
returns with adding 15% to it. For example if in A1 I enter 100 it should
return 115 in cell A1. My gut feeling as a novice is it is not possible,
nevertheless wanna check with the wizards on line
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Self Calculation

Try the sheet sub below from Don Guilett (slightly adapted)

To install:
Right click on the sheet tab View code
Copy n paste the sub into the code window (whitespace on right)
Press Alt+Q to get back to Excel. Test it out on that sheet.

Private Sub Worksheet_Change(ByVal Target As Range)
'Don Guillett, adapted
If Intersect(Target, Columns("A")) Is Nothing Then Exit Sub
Application.EnableEvents = False
If IsNumeric(Target) Then Target = Target * 1.15
Application.EnableEvents = True
End Sub

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,500 Files:370 Subscribers:66
xdemechanik
---
"Satya" wrote:
Is it possible to set a format to a cell so that if I enter a value it
returns with adding 15% to it. For example if in A1 I enter 100 it should
return 115 in cell A1. My gut feeling as a novice is it is not possible,
nevertheless wanna check with the wizards on line

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi threaded calculation (multi CPU) - impact on calculation spe Pascal[_2_] Excel Discussion (Misc queries) 1 December 3rd 08 10:46 AM
If Calculation skateblade Excel Worksheet Functions 4 May 31st 06 12:03 PM
Calculation Bug? ICE9 Excel Discussion (Misc queries) 2 June 8th 05 03:44 AM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 10:11 PM
How do I use a rounded calculation result in another calculation? vnsrod2000 Excel Worksheet Functions 1 January 26th 05 09:36 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"