<

How to use the IF function in Excel

Posted on
6,407 Points
407 Views
Last Modified:
Experience Level: Intermediate
8:44
Bob Flisser
Bob Flisser has authored many courses and books about Microsoft, Adobe and Apple products, and has been a computer trainer since the 1980s.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to use Excel's many other decision-making functions.

Video Steps

1. Enter the following values to create a tax table:



Enter into L2: NJ tax
Enter into M2: 7%

2. Create a new header for column H:


Enter into H5: Tax

3. Enter the IF function:


Enter into H6: =IF(C6="NJ", G6*$M$2,0)
IF function in H6

4. Enter the formula:


Press Enter. The value is 0 because this customer is from Michigan.

5. Use AutoFill to copy this formula down the page:


Click back on H6.

6. Position the mouse pointer on the dot in the lower right corner of the cell so the mouse pointer becomes a crosshair.


AutoFill dot on cell

7. Double-click..

8. Scroll down the page.

9. Double-click H6.


This way, you can edit the formula.

9. Rewrite the formula so that the value-if-false (zero) is just a set of empty quotation marks.


Rewritten function

10. Enter the rewritten formula, then AutoFill down as you did before.


0
Author:Bob Flisser
1 Comment
 

Administrative Comment

by:Kyle Santos
Congratulations.  Your video has been Accepted and is now published on Experts Exchange.  Feel free to share this video by selecting the social sharing icons to your left.
0

Featured Post

Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Usually, rounding is performed by some power of 10 - to thousands, hundreds, tens, or integer - or to one, two, or more decimals. But rounding can also be done to a power of two, say, 16 or 64, or 1/32 or 1/1024, even for extreme values.
Are you encountering the error message “The workbook cannot be opened or repaired by Microsoft Excel because it is corrupted” when trying to open the MS Excel workbook, and you are not able to open the workbook? If your answer to this question is a …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month