Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Humph
 
Posts: n/a
Default Adding Tax in excel

Hello,
I have tried to find how to do this almost everywhere in the excel help,
internet and even questions asked in this group to no evail. Could some one
please help.
I am trying to make a work sheet where say, I put a dollar value in J13 of
$100, I would like it to automatically add 10% in the same field. I will
continue this down to J30, then make J31 Total the whole lot.
Is this possible?
Then is it possible to hyde the formula so my clients don't see the Tax value?
I really appreciate your help.
Humph
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Adding Tax in excel

right click on the sheet's tab, choose View Code, and paste this codein

Private Sub Worksheet_Change(ByVal Target As Range)
Const strRange = "J13:J30"
Const Multiplier = 1.1

If Intersect(Target, Range(strRange)) Is Nothing Then Exit Sub

Application.EnableEvents = False

If IsNumeric(Target.Value) Then Target.Value = Multiplier * Target.Value

Application.EnableEvents = True

End Sub



"Humph" wrote:

Hello,
I have tried to find how to do this almost everywhere in the excel help,
internet and even questions asked in this group to no evail. Could some one
please help.
I am trying to make a work sheet where say, I put a dollar value in J13 of
$100, I would like it to automatically add 10% in the same field. I will
continue this down to J30, then make J31 Total the whole lot.
Is this possible?
Then is it possible to hyde the formula so my clients don't see the Tax value?
I really appreciate your help.
Humph

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Humph
 
Posts: n/a
Default Adding Tax in excel

Duke,
Your a genius and quick. Thank you so much.
Just for my sake, as I've been trying so long to work it out. How can I do
the same using normal formula method, its killing me.

Humph.

"Duke Carey" wrote:

right click on the sheet's tab, choose View Code, and paste this codein

Private Sub Worksheet_Change(ByVal Target As Range)
Const strRange = "J13:J30"
Const Multiplier = 1.1

If Intersect(Target, Range(strRange)) Is Nothing Then Exit Sub

Application.EnableEvents = False

If IsNumeric(Target.Value) Then Target.Value = Multiplier * Target.Value

Application.EnableEvents = True

End Sub



"Humph" wrote:

Hello,
I have tried to find how to do this almost everywhere in the excel help,
internet and even questions asked in this group to no evail. Could some one
please help.
I am trying to make a work sheet where say, I put a dollar value in J13 of
$100, I would like it to automatically add 10% in the same field. I will
continue this down to J30, then make J31 Total the whole lot.
Is this possible?
Then is it possible to hyde the formula so my clients don't see the Tax value?
I really appreciate your help.
Humph

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Duke Carey
 
Posts: n/a
Default Adding Tax in excel

You can't enter a value into a cell that has a formula, for you'd overwrite
the formula. Best you can do is enter the value in one column and have the
formula in the next column. When you want to 'finalize' things, copy the
formulas and do an EditPaste SpecialValues to repalce the formulas with
values.


"Humph" wrote:

Duke,
Your a genius and quick. Thank you so much.
Just for my sake, as I've been trying so long to work it out. How can I do
the same using normal formula method, its killing me.

Humph.

"Duke Carey" wrote:

right click on the sheet's tab, choose View Code, and paste this codein

Private Sub Worksheet_Change(ByVal Target As Range)
Const strRange = "J13:J30"
Const Multiplier = 1.1

If Intersect(Target, Range(strRange)) Is Nothing Then Exit Sub

Application.EnableEvents = False

If IsNumeric(Target.Value) Then Target.Value = Multiplier * Target.Value

Application.EnableEvents = True

End Sub



"Humph" wrote:

Hello,
I have tried to find how to do this almost everywhere in the excel help,
internet and even questions asked in this group to no evail. Could some one
please help.
I am trying to make a work sheet where say, I put a dollar value in J13 of
$100, I would like it to automatically add 10% in the same field. I will
continue this down to J30, then make J31 Total the whole lot.
Is this possible?
Then is it possible to hyde the formula so my clients don't see the Tax value?
I really appreciate your help.
Humph

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Humph
 
Posts: n/a
Default Adding Tax in excel

Duke,
Copy that. Now I know why it wasn't working all this time, it was doing just
as you said. And I thought it was me.

Thanks again
Humph

"Duke Carey" wrote:

You can't enter a value into a cell that has a formula, for you'd overwrite
the formula. Best you can do is enter the value in one column and have the
formula in the next column. When you want to 'finalize' things, copy the
formulas and do an EditPaste SpecialValues to repalce the formulas with
values.


"Humph" wrote:

Duke,
Your a genius and quick. Thank you so much.
Just for my sake, as I've been trying so long to work it out. How can I do
the same using normal formula method, its killing me.

Humph.

"Duke Carey" wrote:

right click on the sheet's tab, choose View Code, and paste this codein

Private Sub Worksheet_Change(ByVal Target As Range)
Const strRange = "J13:J30"
Const Multiplier = 1.1

If Intersect(Target, Range(strRange)) Is Nothing Then Exit Sub

Application.EnableEvents = False

If IsNumeric(Target.Value) Then Target.Value = Multiplier * Target.Value

Application.EnableEvents = True

End Sub



"Humph" wrote:

Hello,
I have tried to find how to do this almost everywhere in the excel help,
internet and even questions asked in this group to no evail. Could some one
please help.
I am trying to make a work sheet where say, I put a dollar value in J13 of
$100, I would like it to automatically add 10% in the same field. I will
continue this down to J30, then make J31 Total the whole lot.
Is this possible?
Then is it possible to hyde the formula so my clients don't see the Tax value?
I really appreciate your help.
Humph

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Adding footnote to cell in Excel Tom B Excel Discussion (Misc queries) 1 February 17th 06 09:29 PM
adding characters in excel column rita Excel Discussion (Misc queries) 3 February 16th 06 10:30 PM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
Excel Adding duplicated numbers together JJ Joobler Excel Discussion (Misc queries) 1 January 7th 05 01:24 AM


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

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

About Us

"It's about Microsoft Excel"