Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 414
Default vlookup or if statement

hey i really need help with a formula because i don't know which one to use.
i have this information

0-10000 = O% tax
10000-90000 = 20% tax
90001-100000= 30% tax

and i have a lot of values for it but i dont know how to make it like simple
to work out as one formula like the IF statement can be used if it only had
to variables but it has three and i dont know what formula to use.
please help its really important

thank you heaps.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default vlookup or if statement

a) Using IF: =IF(A190000,30%,IF(A110000,20%,0%))
but you are limited to 7 level of nesting with Excel version prior to XL2007
b) With LOOKUP: =LOOKUP(A1,{0,10001,90001},{0,0.2,0.3})

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"andy" wrote in message
...
hey i really need help with a formula because i don't know which one to
use.
i have this information

0-10000 = O% tax
10000-90000 = 20% tax
90001-100000= 30% tax

and i have a lot of values for it but i dont know how to make it like
simple
to work out as one formula like the IF statement can be used if it only
had
to variables but it has three and i dont know what formula to use.
please help its really important

thank you heaps.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default vlookup or if statement

Hi

=(0.2*(A210000)+0.1*(A290000))*A2


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"andy" wrote in message
...
hey i really need help with a formula because i don't know which one to
use.
i have this information

0-10000 = O% tax
10000-90000 = 20% tax
90001-100000= 30% tax

and i have a lot of values for it but i dont know how to make it like
simple
to work out as one formula like the IF statement can be used if it only
had
to variables but it has three and i dont know what formula to use.
please help its really important

thank you heaps.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default vlookup or if statement

You may need to clarify what you want. Are you looking for the tax rate, or
the tax payable? If the latter, presumably the rate is applicable on the
amount within that band?
If when you say "i have a lot of values for it" you mean that there are a
large number of additional steps beyond the 30% band, then you may be better
with a lookup.

Tax rate: =IF(A1<=10000,0,IF(A1<=90000,20%,IF(A1<100000,30%, "undefined")))
Tax payable:
=IF(A1100000,"undefined",30%*(MIN(10000,MAX(A1-90000,0)))+20%*(MIN(80000,MAX(A1-10000,0))))
--
David Biddulph

"andy" wrote in message
...
hey i really need help with a formula because i don't know which one to
use.
i have this information

0-10000 = O% tax
10000-90000 = 20% tax
90001-100000= 30% tax

and i have a lot of values for it but i dont know how to make it like
simple
to work out as one formula like the IF statement can be used if it only
had
to variables but it has three and i dont know what formula to use.
please help its really important

thank you heaps.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default vlookup or if statement

See:

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

"David Biddulph" wrote:

You may need to clarify what you want. Are you looking for the tax rate, or
the tax payable? If the latter, presumably the rate is applicable on the
amount within that band?
If when you say "i have a lot of values for it" you mean that there are a
large number of additional steps beyond the 30% band, then you may be better
with a lookup.

Tax rate: =IF(A1<=10000,0,IF(A1<=90000,20%,IF(A1<100000,30%, "undefined")))
Tax payable:
=IF(A1100000,"undefined",30%*(MIN(10000,MAX(A1-90000,0)))+20%*(MIN(80000,MAX(A1-10000,0))))
--
David Biddulph

"andy" wrote in message
...
hey i really need help with a formula because i don't know which one to
use.
i have this information

0-10000 = O% tax
10000-90000 = 20% tax
90001-100000= 30% tax

and i have a lot of values for it but i dont know how to make it like
simple
to work out as one formula like the IF statement can be used if it only
had
to variables but it has three and i dont know what formula to use.
please help its really important

thank you heaps.




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
Vlookup or If Statement? Confused Excel Discussion (Misc queries) 2 May 4th 07 09:47 AM
using vlookup within an if statement Sweetetc Excel Worksheet Functions 7 December 6th 06 05:54 PM
Vlookup with if statement Trishames Excel Discussion (Misc queries) 1 December 1st 06 03:54 AM
Vlookup with If Statement Shams Excel Worksheet Functions 3 October 16th 06 07:52 PM
If statement with Vlookup Marty Excel Worksheet Functions 1 March 30th 06 04:15 PM


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