Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Asta
 
Posts: n/a
Default Help with the IF formula

i have created a payroll spreadsheet and now im currently having issues with
adding the tax.
The tax goes like this:
if $346 - $480 deduct $63 and 25c for each dollar over $346
$481 - $672 deduct 96 and 40c for each dollar over $481

i just need help in how i'd go about making a formula like that. there is
alot more like that but i'd be able to figure it out i just need to know how
i would go creating such a formula?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

http://www.mcgimpsey.com/excel/variablerate.html

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"Asta" wrote in message
...
i have created a payroll spreadsheet and now im currently having issues
with
adding the tax.
The tax goes like this:
if $346 - $480 deduct $63 and 25c for each dollar over $346
$481 - $672 deduct 96 and 40c for each dollar over $481

i just need help in how i'd go about making a formula like that. there is
alot more like that but i'd be able to figure it out i just need to know
how
i would go creating such a formula?



  #3   Report Post  
Asta
 
Posts: n/a
Default

The last reply did help kind of. but its way to confusing for me. I've been
stuck on this problem for about 10 hrs now and i have to hand it in on monday
and i really need to finish the rest which is dependent on that lil bit

"Asta" wrote:

i have created a payroll spreadsheet and now im currently having issues with
adding the tax.
The tax goes like this:
if $346 - $480 deduct $63 and 25c for each dollar over $346
$481 - $672 deduct 96 and 40c for each dollar over $481

i just need help in how i'd go about making a formula like that. there is
alot more like that but i'd be able to figure it out i just need to know how
i would go creating such a formula?

  #4   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

the deductions are not clear. as far as I understood I give the vba sub
which you can run. The data is in B7 to B19

Public Sub test()
Dim cell As Range
For Each cell In Range("B7:B19")
cell.Activate
If ActiveCell = 346 And ActiveCell <= 480 Then ActiveCell.Offset(0, 1) = 63
+ 0.25 * (ActiveCell - 346)
If ActiveCell = 481 And ActiveCell <= 672 Then ActiveCell.Offset(0, 1) = 96
+ 0.4 * (ActiveCell - 481)
Next
End Sub

see wthether logic of deduction is correct by checking one or two figures
between 346 and 480 and again between 481 and 672 . in C colum you will get
the tax deduction.

is it ok


Asta wrote in message
...
The last reply did help kind of. but its way to confusing for me. I've

been
stuck on this problem for about 10 hrs now and i have to hand it in on

monday
and i really need to finish the rest which is dependent on that lil bit

"Asta" wrote:

i have created a payroll spreadsheet and now im currently having issues

with
adding the tax.
The tax goes like this:
if $346 - $480 deduct $63 and 25c for each dollar over $346
$481 - $672 deduct 96 and 40c for each dollar over $481

i just need help in how i'd go about making a formula like that. there

is
alot more like that but i'd be able to figure it out i just need to know

how
i would go creating such a formula?







  #5   Report Post  
HokieLawrence
 
Posts: n/a
Default

=IF(AND(A1=346,A1<=480),(A1-346)*63.25,IF(AND(A1=481,A1<=672),(A1-481)*96.40),"no deduction"))

HokieLawrence


"Asta" wrote:

The last reply did help kind of. but its way to confusing for me. I've been
stuck on this problem for about 10 hrs now and i have to hand it in on monday
and i really need to finish the rest which is dependent on that lil bit

"Asta" wrote:

i have created a payroll spreadsheet and now im currently having issues with
adding the tax.
The tax goes like this:
if $346 - $480 deduct $63 and 25c for each dollar over $346
$481 - $672 deduct 96 and 40c for each dollar over $481

i just need help in how i'd go about making a formula like that. there is
alot more like that but i'd be able to figure it out i just need to know how
i would go creating such a formula?

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
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 11:13 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"