paulS30berks
Registered User.
- Local time
- Today, 18:45
- Joined
- Jul 19, 2005
- Messages
- 116
I am trying to convert an excel formula into a new access query statement.
The statement itself will refer to a tax percentage column within the same query.
Example of excel formula:
=IF(Tax Percentage>22,40,IF(Tax Percentage>10,22,IF(Tax PercentageN2>0,10,0)))
The output I hope to achieve is:
If Tax Percentage is greater than 22 then = 40
If Tax Percentage is greater than 10 but less than 22 should equal 22
If Tax Percentage is greater than 0 but less than 10 should equal 0.
Hope this makes sense?
thanks
The statement itself will refer to a tax percentage column within the same query.
Example of excel formula:
=IF(Tax Percentage>22,40,IF(Tax Percentage>10,22,IF(Tax PercentageN2>0,10,0)))
The output I hope to achieve is:
If Tax Percentage is greater than 22 then = 40
If Tax Percentage is greater than 10 but less than 22 should equal 22
If Tax Percentage is greater than 0 but less than 10 should equal 0.
Hope this makes sense?
thanks