

Go to cell A1 (or another empty cell, if you want to put the data elsewhere), and then select “Edit” from the menu bar. Copy it, and then go back to your excel worksheet. Note that I’ve added the maximum amount of $200K into cell B3:īefore we go further, if you’d like to work through the examples yourself, here’s the raw data you can copy into an Excel worksheet. For example, when sales fell between a minimum and maximum number.
EXCEL FOR MAC IF STATEMENT WITH MULTIPLE CONDITIONS HOW TO
The original question I received from a reader, which prompted this series, was about how to use the IF statement in Excel when you had two conditions that had to be met. Grab the fill handle on cell D2 and drag it over the rest of the cells ( D2 to D6).Įxcel will now calculate the PPV revenue for each article.Following up on last week’s introductory post on using the IF function, here’s one on how to use Excel’s IF statement when you have multiple conditions to meet.


This will multiply the PPV group by the number of views. In the formula bar, enter the formula below and press Enter: Now the formula will determine the PPV group for each article. Grab the fill handle and drag it over the rest of the cells ( C2 to C6). The formula will determine the PPV group of that article. It's time to use this formula in the datasheet. If the article doesn't fit in any of the previous groups, then it must have over 10,000 views, which puts it in the 0.02 PPV group. If it does, then the PPV group will be 0.001 and if it doesn't, the formula will move on to test if it falls in the other groups. This formula will test the views and see if the article falls in the first group. You're going to need a nested IF statement. Writing a formula to check and determine the PPV group is very much like the previous example with the car classes. Related: Useful Spreadsheet Templates to Organize Your Life So, in order to calculate the PPV revenue, first you have to see what PPV group the article falls in and then finally, multiply the PPV group with the number of views to get the PPV revenue. The writers get paid for every view, however, the pay per view (PPV) amount itself is determined by the number of views.

In this second example, we have a list of articles with the views each of them has received. Observe as the Excel formula determines the class of each car. Grab the fill handle and drag it over the rest of the cells ( C2 to C8). The formula will now determine the class of the first car. In the formula bar, enter the formula below: This repeats seven times, until in the final statement, the value if false becomes No Class. In this instance, the value_if_false is another IF statement. The formula will eventually test the acceleration value for every class, and if the car didn't fit any of these (meaning an acceleration of over 14s) then the formula will output “No Class”. These tests will go on and on and with each IF statement, the previous IF statement will become eliminated. This test, coupled with the first test, actually tests to see if the acceleration value is between 3 and 5, which would indicate if the car is A-class or not. However, if it wasn't less than 3, then the formula will test if it's less than 5. If it is, then the car is definitely an S-class car. In essence, the formula will test if the acceleration is less than 3 seconds. The goal here is to write a formula that outputs the car class by reading its acceleration. If not, then read our guide on IF statements and how to use them in Excel. A great thing about the IF function is that you can nest it inside itself, which gives you the ability to create multiple conditions for your formula.īefore we get down to nested IF statements, here's a simple one: If you're already familiar with the IF function, then proceed to the next section. If it doesn't, then the formula will return another output. If the value passes the logical test, the formula will return the first output. With the IF function, you can write a condition or a logical test in your formula. Curious how? Read on to find out!Īn IF statement or an IF function is one of those functions in Excel that has the potential to take your formula to the next level and make more sophisticated tasks possible. You can take your IF statements to the next level, by nesting them inside each other. IF statements in Excel let you set conditions for your formula and tell it what to output when the condition is met or when it's not.
