

We hope you found this article helpful and learned something new. Range: The range of cells that Excel is to look atĬriteria: The criteria that the cells must meet in order to be added The syntax for the SUMIF function is as follows: The answer for the Total Female Salaries = £79,000. If the range B2 to B7 says Female then add up all of the salaries that correspond. This function will add the value of cells that meet a certain criteria.įor example, suppose we want to calculate the total salary cost of all females:įigure 6- Sumif adds up all the rows that meet your criteria

=IF(B5>=$G$2,”OAP”,If(B5<=$G$3,”Child”,”Adult”))Ī nested IF Function is just a lot of single IF functions strung together. You can nest up to sixty four IF functions inside one another, but if you were going to go so far, you would be more likely to use a HLOOKUP or VLOOKUP.

When we want more than these two basic answers then we need to nest the formula, i.e. The basic IF function only allows for two possible answers: either the logical test is met or it is not. The structure of an IF Functionįigure 2- working out the bonus amount Nested IF FunctionĪ nested IF Function is an IF function nested inside another IF function.

If it is true it will return one answer, if it is false it will return a different answer.įor example: Can my company afford to buy 10 new computers? There are 2 possible outcomes – if it is within the budget then the answer is “yes”, if it is outside of the budget then the answer is “no”. Please read on… IF Function (IF Statement)Īn If function asks Excel to consider if something is true or false.
If statement excel how to#
Find out how to use the IF Function, nested IF Function, COUNTIF Function and SUMIF Function. In this article we will show you how to apply conditional logic in formula. One of the reasons Excel is such a practical tool are its formulas.
