![]() |
Leading the way in Microsoft Office Development |
| Home | | | Excel | | | Word | | | PowerPoint | | | Consultancy | | | Feedback | | | Contact |
| Excel > Functions > Logical > IF |
IF(logical_test, value_if_true, value_if_false) |
| Returns the value based on a condition you specify. |
| logical_test | The value or expression that can be evaluated to True or False. | |
| value_if_true | The value that is returned if "logical_test" is True. | |
| value_if_false | The value that is returned if "logical_test" is False. |
| REMARKS |
| This function is not case sensitive. | ||
| You can nest up to 7 IF functions. | ||
| Using nested IF functions is a common way to conditionally test, although try to avoid seven if possible as it requires a lot of effort to understand. | ||
| If any of the arguments to IF are arrays, every element of the array is evaluated when the IF statement is carried out. | ||
| This function can be nested more than 7 times by splitting the formula into separate pieces. Use a named ranges to define your smaller bits. IF(OneToSix,OneToSix,SevenToThirteen), whereOneToSix has 6 nested IF statements and SevenToThirteen has another 7. | ||
| If you use text arguments, the match must be exact, except for case. | ||
| This function can return an array formula. |
| EXAMPLES |
|
| Functions - I | Index - I | Office Online 2003 | Office Online 2007 |
| Copyright © 2010 Better Solutions Limited. All Rights Reserved. | Top |