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
nested IFs
-
- Administrator
- Posts: 78616
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: nested IFs
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.
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
Hans
-
- NewLounger
- Posts: 10
- Joined: 19 Apr 2010, 22:48
Re: nested IFs
Akways easy when you do it.
Thanks heaps
Thanks heaps
-
- 5StarLounger
- Posts: 689
- Joined: 27 Jan 2010, 16:45
- Location: Ottawa, Ontario, Canada
Re: nested IFs
For future reference, the syntax for nested IFs would be:Karat wrote:Akways easy when you do it.
Thanks heaps
=IF(E6=12.5%,D6-D6/1.125,IF(E6=15%,D6-D6/1.15,IF(E6=0%,0,"Unacceptable Tax Rate")))
Regards
Don
Don
-
- 3StarLounger
- Posts: 397
- Joined: 24 Jan 2010, 19:43
- Location: Salt Lake City, Utah, USA
Re: nested IFs
Funny. I have been using this form for years: =D3*(1/(E3+1)-1)HansV wrote:=D6*E6/(1+E6)
Goshute
I float in liquid gardens
I float in liquid gardens
-
- Administrator
- Posts: 78616
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: nested IFs
It's basically the same (apart from the sign):Goshute wrote:Funny. I have been using this form for years: =D3*(1/(E3+1)-1)
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans