nested IFs

Karat
NewLounger
Posts: 10
Joined: 19 Apr 2010, 22:48

nested IFs

Post by Karat »

Hi there
I have a workbook and I have to calculate tax.

For instance the price of an item is $100 (inclusive) and the tax is 12.5%, but it can also be 15% or 0%.
I have the percentages as dropdowns.
I started
=IF(E6=12.5%,D6/1.125-D6)=IF(E6=15%,D6/1.15-D6)=IF(E6=0%,D6,0)

D6 is the amount inclusive of tax. What's gone wrong because it says FALSE

Thanks heaps

User avatar
HansV
Administrator
Posts: 78616
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: nested IFs

Post by HansV »

Hi Karat,

You don't need IF for this, you can simply use

=D6*E6/(1+E6)

This will work for any percentage in E6.
Best wishes,
Hans

Karat
NewLounger
Posts: 10
Joined: 19 Apr 2010, 22:48

Re: nested IFs

Post by Karat »

Akways easy when you do it.
Thanks heaps

User avatar
Don Wells
5StarLounger
Posts: 689
Joined: 27 Jan 2010, 16:45
Location: Ottawa, Ontario, Canada

Re: nested IFs

Post by Don Wells »

Karat wrote:Akways easy when you do it.
Thanks heaps
For future reference, the syntax for nested IFs would be:

    =IF(E6=12.5%,D6-D6/1.125,IF(E6=15%,D6-D6/1.15,IF(E6=0%,0,"Unacceptable Tax Rate")))
Regards
Don

User avatar
Goshute
3StarLounger
Posts: 397
Joined: 24 Jan 2010, 19:43
Location: Salt Lake City, Utah, USA

Re: nested IFs

Post by Goshute »

HansV wrote:=D6*E6/(1+E6)
Funny. I have been using this form for years: =D3*(1/(E3+1)-1)
Goshute
I float in liquid gardens

User avatar
HansV
Administrator
Posts: 78616
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: nested IFs

Post by HansV »

Goshute wrote:Funny. I have been using this form for years: =D3*(1/(E3+1)-1)
It's basically the same (apart from the sign):
x252.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans