Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel 2003 Formula if statements 1

Status
Not open for further replies.

kcoleman26

Technical User
Oct 26, 2007
66
US
I am trying to write a formula to calculate tax based on weather or not someone is tax exempt or not.

If Room Rate = "$0.00" then "$0.00" else
It Tax Exempt(cell f5) = "Yes"
then (cell f9) else
if Tax Exempt(cell f5) = "No"
then f9*f10

I am not familar with VB but do have some experience in Crystal so I don't know if this formula could be done in excel. If may just need to be written differently.

Any Help Would be appreciated.

Thanks,
KC
 





Hi,

This is Excel, not VB...
[tt]
If Room Rate = "$0.00" then "$0.00" else
It Tax Exempt(cell f5) = "Yes"
then (cell f9) else
if Tax Exempt(cell f5) = "No"
then f9*f10

=if(Room_Rate=0,0,if(F5="Yes",F9,F9*F10))
[/tt]
assuming that you have a cell that has a RangeName of Room_Rate.

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top