Start learning with our library of video tutorials taught by experts. Get started

Excel 2010 Essential Training

Using IF


From:

Excel 2010 Essential Training

with Bob Flisser

Video: Using IF

Sometimes you want the value that's displayed in a cell to depend on a condition that's happening somewhere else. This is where you use a conditional statement and it's a statement that you can test. The way it works is that you output one result if that statement is true, and you output a different result if that statement is false. To do this, you use the IF function. The IF function gets three arguments. The first argument is a statement that you test. For example, you might say the content of Cell C6 > 500.
Expand all | Collapse all
  1. 1m 35s
    1. Welcome
      57s
    2. Using the exercise files
      38s
  2. 19m 31s
    1. Exploring three common uses for Excel
      3m 17s
    2. Touring the interface
      3m 38s
    3. Finding the commands you need
      3m 51s
    4. Using Backstage view or the File tab
      3m 25s
    5. Maintaining file compatibility
      5m 20s
  3. 21m 23s
    1. Creating a worksheet
      5m 23s
    2. Techniques for copying and pasting
      3m 57s
    3. Entering data automatically with Auto Fill
      4m 37s
    4. Targeting large data groups
      4m 26s
    5. Changing a worksheet's structure
      3m 0s
  4. 47m 50s
    1. Understanding formulas and functions
      4m 41s
    2. Entering data in a worksheet
      3m 22s
    3. Adding numbers manually
      5m 1s
    4. Adding numbers using Sum and AutoSum
      6m 11s
    5. Adding a whole worksheet
      1m 48s
    6. Working with numbers in columns
      4m 53s
    7. Preventing errors using absolute references
      5m 57s
    8. Working with times and dates
      3m 8s
    9. Using IF
      4m 49s
    10. Using SUMIF and AVERAGEIF
      4m 15s
    11. Naming and using cell ranges
      3m 45s
  5. 33m 57s
    1. Formatting numbers and dates
      7m 6s
    2. Applying fonts, background colors, and borders
      4m 35s
    3. Adjusting columns, rows, and text
      5m 2s
    4. Using conditional formatting
      4m 6s
    5. Using custom conditional formatting
      5m 49s
    6. Adding pictures and shapes
      7m 19s
  6. 25m 27s
    1. Inserting SmartArt
      6m 54s
    2. Coordinating a look using themes
      3m 22s
    3. Applying built-in styles
      3m 16s
    4. Creating and sharing styles
      5m 33s
    5. Using templates
      4m 9s
    6. Creating and using original templates
      2m 13s
  7. 13m 23s
    1. Making the pieces fit
      4m 57s
    2. Inserting headers and footers
      3m 51s
    3. Printing and PDFs
      4m 35s
  8. 34m 3s
    1. Finding and replacing data
      3m 12s
    2. Freezing panes
      3m 0s
    3. Repeating row and column titles
      3m 34s
    4. Creating multiple custom worksheet views
      5m 18s
    5. Hiding or grouping rows and columns
      5m 31s
    6. Managing worksheets
      7m 23s
    7. Calculating formulas across worksheets
      6m 5s
  9. 36m 34s
    1. Importing and exporting data in Excel
      8m 2s
    2. Setting workbook permissions
      6m 44s
    3. Inserting and editing comments
      6m 49s
    4. Sharing a workbook
      1m 25s
    5. Tracking changes
      3m 5s
    6. Saving files in shared locations
      10m 29s
  10. 27m 30s
    1. Splitting cell data into multiple cells
      2m 22s
    2. Joining data from multiple cells
      4m 18s
    3. Basic and multi-field sorting
      6m 30s
    4. Using tables to sort and filter data
      4m 31s
    5. Inserting automatic subtotals
      3m 46s
    6. Creating lookup tables
      6m 3s
  11. 32m 56s
    1. Using auditing to diagram
      6m 3s
    2. Using evaluation in Excel
      2m 2s
    3. Working with Goal Seek
      5m 29s
    4. Using data tables in formulas
      6m 2s
    5. Using scenarios in formulas
      5m 28s
    6. Exploring the Analysis Toolpak
      7m 52s
  12. 18m 1s
    1. Discovering PivotTables
      2m 22s
    2. Creating a basic PivotTable
      2m 46s
    3. Modifying a PivotTable
      6m 57s
    4. Creating and modifying a PivotChart
      5m 56s
  13. 26m 58s
    1. Choosing chart types
      1m 55s
    2. Inserting Sparklines
      3m 54s
    3. Creating a column chart
      3m 23s
    4. Modifying a column chart
      5m 47s
    5. Creating and modifying a pie chart
      6m 45s
    6. Placing Excel charts into other Office applications
      5m 14s
  14. 21m 53s
    1. Understanding macros
      3m 5s
    2. Recording and using a simple macro
      11m 58s
    3. Editing a macro
      6m 50s
  15. 20m 33s
    1. Customizing the Quick Access toolbar
      3m 30s
    2. Customizing the Ribbon bar
      8m 44s
    3. Setting Excel options
      8m 19s
  16. 16s
    1. Goodbye
      16s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Excel 2010 Essential Training
6h 21m Beginner Jun 09, 2010

Viewers: in countries Watching now:

In Excel 2010 Essential Training, Bob Flisser demonstrates the core features and tools in Excel 2010. The course introduces key Excel skills, shows how to utilize these skills with in-depth tutorials on Excel functions and spreadsheet formatting. It also covers prepping documents for printing, working with large worksheets and workbooks, collaborating with others, using Excel as a database, analyzing data, charting, and automating and customizing Excel. Exercise files are included with the course.

Topics include:
  • Copying and pasting techniques
  • Working with formulas and functions
  • Dealing with formula errors
  • Creating lookup tables
  • Naming cell ranges
  • Formatting data and worksheets
  • Finding and replacing data
  • Creating SmartArt diagrams
  • Creating charts and PivotTables
  • Recording macros
  • Sharing workbooks
Subjects:
Business Computer Skills (Windows) Spreadsheets Teacher Tools Education Student Tools
Software:
Excel
Author:
Bob Flisser

Using IF

Sometimes you want the value that's displayed in a cell to depend on a condition that's happening somewhere else. This is where you use a conditional statement and it's a statement that you can test. The way it works is that you output one result if that statement is true, and you output a different result if that statement is false. To do this, you use the IF function. The IF function gets three arguments. The first argument is a statement that you test. For example, you might say the content of Cell C6 > 500.

But when you make that statement or when you have that condition, well, there are two possibilities. Either it's true or it's false. So the IF function will output one value if that statement is true and it'll output another value if that statement is false. So, the general syntax of the IF function is say =IF and then you make the statement. Then you have the value of true and then you have the value of false. You notice that these three arguments are separated with commas. That's really all there is to it.

So let's take a look. What we have here in this sheet is people selling stuff. We have here our salespeople. We have here what they're selling and the commission rate. What we are going to do is we are going to say if the person sold at least $500, they are going to get a commission rate of 10%. If they sold less than $500, they will get a commission rate of 5%. Over here, you see we have a little table. Now once we stuff that commission rate in Column C, we go to Column D and the formula is already done for you.

We are simply going to multiply the sale amount times the rate and then we have the dollar amount of the commission. So, this will be a little more clear once we start doing this. So, let's go into Cell C6 then we'll say =if, open up the parenthesis. Now, we put in the first argument. The argument is the content of the B6>=500. That's it. Did the person sell at least 500 or not? That's true or false. So, we put in comma. That's the end of the first argument.

So, the second argument is what do we want the value of C6 to be if that condition is true? Well, if that condition is true, it means they sold at least $500. They get the higher commission rate. So, we click that 10%. Now, we are going to Auto Fill this down. So we want to make sure this is an absolute reference. So press the F4 key. That inserts the dollar signs and makes it an absolute reference. So that's what we output if true. Put in a comma. Now, we put in the third, last argument. If that condition is false, it means they did not sell at least $500.

They sold under $500. So they get the lower commission rate of 5%. So just click over here in cell J3 that's a lower commission rate. Again, press the F4 key on the keyboard to make that an absolute reference. If you are familiar with absolute references, you might want to go back and watch the movie when we talk about it. That's it. End the parenthesis, hold Ctrl+ Enter, and there we can see its 10%. Now, put your mouse pointer on that little dot in the lower right corner. When the mouse pointer becomes that crosshair, double-click and we fill down to the bottom and look at that.

Then you can eyeball it. So here is someone who sold about $600 and they got 10%. Here is someone who sold under $500 they get 5%. Now, we can see yes indeed, 10% of $509 was $50.99. So, that works. Now, that's great, but wait, there is more. Because a conditional statement, you can use the IF function to output text as well as a number. So, let's do that here. Let's go into cell E6 and type =if and open up the parenthesis and the condition is going to be same.

So, we are going to say is that amount there, the sale amount, is that great than or equal to 500 comma. Now, if it's true, we want to output a comment. So, open up your double quotation marks and we'll type in "Great job!" That's the end of the comment. So close the quotation mark. That's now the end of that argument. Type in a comma. Now, remember this is not English, this is Excel, so the comma has to go outside the quotation mark not inside the quotation mark.

So, if that condition is false, put in another double quotation mark and we will "Better luck next time." Close the quote, close the parenthesis. Press Ctrl+Enter. Again, put your mouse pointer on that Auto Fill handle. When the mouse pointer becomes a crosshair, double-click and now we have the appropriate comment for each one. The IF function conditional statements are great. So, you can always have the value of a cell depend on something else that's happening in the worksheet or even in another worksheet.

There are currently no FAQs about Excel 2010 Essential Training.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Excel 2010 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked