IF with OR function
The formula above in cell D3 performs two different logical tests, if at least one of them is TRUE one thing happens, if all return FALSE another thing happens.
If a value in column B is equal to "Male" or a value on the same row in column C is above 60 the formula returns "Group 1", if none of these logical expressions return TRUE the formula returns "Group 2"
Alternative formula
You can also wrap each logical expression with parentheses and use the + (plus sign) to have the same functionality as the OR function.
Why wrap each logical expression? It determines the order of calculation, you want the comparisons to be calculated before you add the boolean values.
You now know what a plus sign means if you happen to see a formula with a plus sign. The advantage is a slightly smaller formula.
The array formula in cell B16 checks if there is a value larger than 80 in cell range C3:C13. You need to enter this as an array formula because you carry out a logical test to each cell in cell range C3:C13 and that logical test returns an array of boolean values.
The OR function then returns TRUE if at least one boolean value is TRUE in the array or else FALSE. The IF function returns <80 if there are no values above 80 and >80 if there is at least one value above 80 in cell range C3:C13.
The array formula in cell B17 checks if there are any blank values in cell range B3:B13.
To enter an array formula press and hold CTRL + SHIFT simultaneously, then press Enter once. Release all keys.
The formula bar now shows the formula enclosed with curly brackets telling you that you entered the formula successfully. Don't enter the curly brackets yourself.
Download excel *.xlsx file
Checks if a logical expression is met. Returns a specific value if TRUE and another specific value if FALSE.
Nested IF statements in a formula are multiple combined IF functions so more conditions and outcomes become possible. They all are [โฆ]
The easiest way to check if a cell contains a specific text string is, in my opinion, the IF and [โฆ]
If cell contains text from list
The array formula in cell C3 checks if cell B3 contains at least one of the values in List (E3:E7), [โฆ]
Here is how to highlight every other row using conditional formatting. Conditional formatting formula: =ISEVEN(ROW())*OR($B3:$D3<>"") Alternative CF formula: =EVEN(ROW())=ROW() This [โฆ]
Question: I have a list that I keep adding rows to. How do i create a border that expands as [โฆ]
How to filter using OR logic between columns [Formula]
The filter feature in Excel won't allow you to do OR logic between columns, however, you can if you allow [โฆ]
The OR function allows you to carry out a logical test in each argument and if at least one argument returns [โฆ]
Leave a Reply
How to comment
How to add a formula to your comment
<code>Insert your formula here.</code>
Convert less than and larger than signs
Use html character entities instead of less than and larger than signs.
< becomes < and > becomes >
How to add VBA code to your comment
[vb 1="vbnet" language=","]
Put your VBA code here.
[/vb]
How to add a picture to your comment:
Upload picture to postimage.org or imgur
Paste image link to your comment.