Excel 2010-2019 Excel 2007 Excel 2003 Tips & Tricks Excel Forum Course Index CIG Excel Book

 Home   News   Courses   Tips   Templates   Forums   Help   Order   Contact   Logon More... What's New? Tips & Tricks Access Index Access Tips Excel Index Excel Tips Waiting List

 NEW:    dismiss
 Tips & Tricks New Tips Added Weekly! Click here to get on our Mailing List

Using the IF function to calculate sales tax

 Q: I'm creating a spreadsheet in Microsoft Excel. I need to be able to have the sheet calculate sales tax for orders, but only if the customer is from NY state. Otherwise, I need the tax to calculate at zero. I know that it can be done, but I have no idea how to do it. Can you help? > Sy, Buffalo NY A: In order to have Excel do this, you need to know how to use the IF function. Unlike other functions, the IF function takes three pieces of data. First, a conditional statement - something to test, like "is this customer from NY." Second, you need to specify the value to use if the condition is true, and finally the value to use if your condition is false. Let's assume your customer's state field is in cell B5. Your IF function would look something like this: =IF(B5="NY", 0.08, 0) This says, "if the customer is from NY, his sales tax rate is 8%, otherwise, it's 0%." If this seems a little confusing, don't worry. We cover this exact topic in our Microsoft Excel 201 course. We'll teach you all about the IF function and how it works.

By Richard Rost
Click here to sign up for more FREE tips

 You may want to read these articles from the 599CD News:
 6/5/2020 Excel Worksheet Change VBA 5/25/2020 Excel Expert 11 Student Forum 5/23/2020 Excel XLOOKUP Function 5/20/2020 Excel Expert Level 11 5/20/2020 Excel Expert 11 Outline 5/4/2014 Microsoft Access Expert 20 3/5/2013 Excel Tip: Price Markups 2/3/2013 Signed Copies of my Excel Book 9/27/2012 Excel Expert 10 Handbook Ready 9/18/2012 Two New Excel Tips: Date/Time Differences

Learn

 Access index Excel index Word index Windows index PowerPoint index Photoshop index Visual Basic index ASP index Seminars More...
Customers

Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Info

Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search The Site
Waiting List
Production Schedule
Collapse Menus
Help

Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About

Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order

Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact

Live Chat
General Info
Support Policy
Contact Form
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey