| CountIf Function |
Nested If Function |
| IsError Function |
More Functions |
The Excel If function is a powerful tool that can be used when the information you want in a cell is conditional. Its particularly handy if you need to specify two or more different responses for a cell based on conditions you specify.
The Excel If function is extremely versatile, however its often seen as quite a confusing function to use. Once you learn how to use Excel's IF function, you'll wonder what you ever did without it!
Microsoft explains the syntax of the Excel IF function:
=IF(logical_test,value_if_true,value_if_false)
What that means, simply put, is this:
=IF("if the condition stated here is true", "then enter this value", "else enter this value")
A practical example would be a spreadsheet containing exam marks for students. Perhaps you wanted to see at a glance who had failed and who had passed. An IF function would be perfect for this. Let's assume that the pass mark is 50 and the marks are in column B, starting from row 4. Our formula would look like this:
=IF(B4>50, "Pass", "Fail")
So, this formula says if the data in cell B4 is greater than 50, then put "Pass" in the cell this formula is in, otherwise put "Fail" in the cell. You can then simply copy this formula for the entire list of names - Excel will change the cell reference for you.
The Excel IF function is an important one to understand. It can be used to great effect by itself, as a nested IF function or in conjunction with other functions such as ISERROR. The Excel IF function can be nested up to 7 times to make quite complex formulas.
For more functions, check the Excel Function index.
Home | About Us | Our Services | Software | Spreadsheets Library | Excel Tutorials | Useful Links | Site Map | Contact Us
Unless otherwise stated, all images and text
Spreadsheet123
Visit our busy book shop, were you can find latest books for beginners as well as advanced excel users.
Spreadsheet 123 Spreadsheet Software Development
See Spreadsheets for:
a.Hotel
Management b.Personal
Budget
c.Corporate
Finance d.Rating
Calculation e.Real
Estate and Mortgage
f.Web Calc