

In the screen below, C3 contains this formula, copied down. Let's say you want to process values that are 80 and higher. However, you can also test criteria directly on the worksheet as a formula. Translation: if color is "red" or "blue", return "OK". For example, to check for "red" or "blue", we can wrap the OR function inside IF like this: =IF(OR(B3="red",B3="blue"),"OK", "") The classic way to test criteria is to wrap them in the IF function. To get wildcard behavior with IF, you can combine the SEARCH and ISNUMBER functions, as described below. Notice the IF function is not on this list. Here is a list of common functions that do: =COUNTIFS(A1:A100,"?") // count cells with 5 characters =COUNTIFS(A1:A100, "www*") // count cells starting with "www" =COUNTIFS(A1:A100,"*red*") // count cells that contain "red" Here are a few examples of using wildcards for criteria in the COUNTIFS function. Wildcards can be used alone or combined to get a variety of matching behaviors: Usage OperatorĮxcel provides three "wildcards" for matching text in formulas: Character Logical operatorsĬriteria often make use of the logical operators listed in the table below. If you can master this one idea, you have the foundation to build and understand many advanced formulas. In all other cases, criteria should return FALSE or zero. The trick is to construct criteria in a way so that they only return TRUE when the test meets your exact criteria. What are criteria?Ĭriteria are logical expressions that return TRUE or FALSE, or their numerical equivalents, 1 or 0. This section covers the building blocks of formula criteria, and some simple ways to verify that criteria are performing as expected. Translation: sum values in E3:E7 when value in B3:B7 is "red". In this example, the SUMIFS function is used to sum the total only when the color is "red": =SUMIFS(E3:E7,B3:B7,"red")

Translation: if B3 is either "red" or "green", increase the price by 10%.


In the next example, D3 contains this formula: =IF(OR(B3="red",B3="green"),C3*1.1,C3) Here, E3>30 is the criteria, used inside IF to determine if the formula should return "Yes" or "No" for each invoice. Translation: If the value in E3 is greater than 30, return "Yes", otherwise return "No". In the screen below, F3 contains this formula: =IF(E3>30,"Yes","No") To help set the stage, let's look at three examples of criteria in action. Filter data to exclude irrelevant information.Restrict processing to matching values only.We want to hear from you! To send feedback about Microsoft Forms, go to the upper right corner of your form and select More form settings > Feedback.Function names on dark backgrounds below are links to more information. See what else you can do with Microsoft Forms. Now that you have the basics down, you can also customize your form theme, add a picture to a question, create sections, use branching logic, and more. Your newly created quiz will appear at the top of your My forms list in the Forms for OneNote panel and can be embedded into your OneNote notebook. To test out your quiz, answer the questions in Preview mode, and then select Submit. Select Preview to see how your quiz will look on a Computer or Mobile device. Highlight a word or words in your title or questions, and then choose any of the following: Bold (keyboard shortcut - CTRL/Cmd+B), Italic (keyboard shortcut - CTRL/Cmd+I), Underline (keyboard shortcut - CTRL/Cmd+U), Font color, Font size, Numbering, or Bullets.
