#1   Report Post  
Posted to microsoft.public.excel.newusers
dk dk is offline
external usenet poster
 
Posts: 129
Default Calculation

Is there anyway to have in the same cell 10% increase
ex; we shall input data $75.00 and this shall be changed automatcally to
$82.50 without having to have 2 cells or columns please explain
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default Calculation

You can do this with an event macro.

For instance, put this in your worksheet code module (right-click the
worksheet tab and choose View Code):


Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Const csSCALEFACTOR As Double = 1.1 'Add 10%
With Target
If .Count 1 Then Exit Sub
If Not Intersect(.Cells, Range("A1,C1")) Is Nothing Then
If IsNumeric(.Value) Then
On Error Resume Next
Application.EnableEvents = False
.Value = Application.Round(.Value * csSCALEFACTOR, 2)
Application.EnableEvents = True
On Error GoTo 0
End If
End If
End With
End Sub

If you're not familiar with macros, see

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In article ,
dk wrote:

Is there anyway to have in the same cell 10% increase
ex; we shall input data $75.00 and this shall be changed automatcally to
$82.50 without having to have 2 cells or columns please explain

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 524
Default Calculation

Sun, 3 Jun 2007 08:33:02 -0700 from dk
:
Is there anyway to have in the same cell 10% increase
ex; we shall input data $75.00 and this shall be changed automatcally to
$82.50 without having to have 2 cells or columns please explain


You're trying to do something that is not really how Excel was
intended to work. You can force Excel to do it, but you'll save a lot
of effort if you work with Excel as it was intended:

cell A1 contains value
cell B1 contains =round(A1*1.10,2)

or else choose a product that more nearly meets your requirements.

If you really need to do that thing, and it really has to be in
Excel, then a macro is the only way I know of.


--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
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
Calculation nc Excel Discussion (Misc queries) 2 March 13th 07 12:26 PM
sum calculation Laura Excel Worksheet Functions 3 December 20th 05 08:46 PM
Calculation in a Row kingpenguin58 Excel Worksheet Functions 5 June 17th 05 02:59 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 08:06 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"