
谷歌瀏覽器的翻譯功能在哪

If you’ve ever wanted to check whether data from your Google Sheets spreadsheet meets certain criteria, you can use AND and OR. These logical functions give you TRUE and FALSE responses, which you can use to sort through your data.
如果您曾經想查看Google表格電子表格中的數據是否滿足某些條件,則可以使用AND和OR。 這些邏輯函數為您提供TRUE和FALSE響應,您可以使用它們對數據進行排序。
If you use AND with multiple arguments, all of those arguments must be true to get a TRUE response; otherwise, AND responds with FALSE.?If you use OR, only one argument has to be true for OR to provide a TRUE response.
如果將AND與多個參數一起使用,則所有這些參數都必須為true才能獲得TRUE響應; 否則,AND響應為FALSE。 如果使用OR,則OR只需一個參數即可為TRUE,以提供TRUE響應。
You can use AND and OR separately or within other functions, like IF.
您可以單獨使用AND和OR,也可以在其他函數(例如IF)中使用。
使用AND功能 (Using the AND Function)
You can use the AND function on its own or combined with other functions to provide a logical (TRUE or FALSE) test.
您可以單獨使用AND函數,也可以將其與其他函數結合使用以提供邏輯(TRUE或FALSE)測試。
To get started, open a?Google Sheets?spreadsheet and click an empty cell. Type =AND(Argument A, Argument B)
?and replace each argument with the criteria you want to use. You can use as many arguments as you’d like, but you must have at least one for AND to work.
首先,請打開Google表格電子表格,然后單擊一個空白單元格。 鍵入=AND(Argument A, Argument B)
并將每個參數替換為要使用的條件。 您可以根據需要使用任意多個參數,但是必須至少具有一個參數才能使AND起作用。
In the example below, we used three arguments. The first argument is the simple calculation of 1+1=2.
在下面的示例中,我們使用了三個參數。 第一個參數是1 + 1 = 2的簡單計算。
The second argues that the cell E3 equals the number 17.
第二種說法是單元格E3等于數字17。
Finally, the third argues that the value of cell F3 (which is 3) is equal to the calculation of 4-1.
最后,第三種觀點認為,單元格F3的值(為3)等于4-1的計算。
As all three arguments are true, the AND formula responds with TRUE in cell A2. If we change any of these arguments, it will cause the AND formula in A2 to change the response from TRUE to FALSE.
由于所有三個參數均為真,因此AND公式在單元格A2中以TRUE響應。 如果我們更改這些參數中的任何一個,它將導致A2中的AND公式將響應從TRUE更改為FALSE。

In the example below, the AND formula in cell A3 has two correct arguments and one that’s incorrect (F3=10, while F3 actually equals 3). This causes AND to respond with FALSE.
在下面的示例中,單元格A3中的AND公式有兩個正確的參數,一個不正確(F3 = 10,而F3實際上等于3)。 這導致AND響應為FALSE。

使用或功能 (Using the OR Function)
While AND requires all the arguments it uses to be true, the OR function only requires one to be true for OR to respond with TRUE.
AND要求它使用的所有參數都為true,而OR函數僅要求一個參數為true,OR才能使用TRUE進行響應。
Like AND, you can use the OR function on its own or combine it with other functions. The same as with AND, you can use as many arguments as you want, but you must have at least one for it to work.
與AND一樣,您可以單獨使用OR函數,也可以將其與其他函數結合使用。 與AND相同,您可以根據需要使用任意多個參數,但是必須至少有一個參數才能起作用。
To use OR, click an empty cell and type =OR(Argument A, Argument B)
, and replace the arguments with your own.
要使用OR,請單擊一個空單元格,然后鍵入=OR(Argument A, Argument B)
,然后用您自己的參數替換。
In the example below, the formula using OR in cell A2 has one incorrect argument out of three (F3=10, where F3 actually equals 3).
在下面的示例中,在單元格A2中使用OR的公式具有三個不正確的參數(F3 = 10,其中F3實際上等于3)。
Unlike when you use AND, one incorrect argument out of three will result in a TRUE result. For a FALSE result, all the arguments you use must be incorrect.
與使用AND不同,在三個參數中有一個不正確將導致結果為TRUE。 對于FALSE結果,您使用的所有參數都必須不正確。

In the example below, the OR formulas in cells A4 and A5 returned a FALSE response because all three arguments in both formulas are incorrect.
在下面的示例中,單元格A4和A5中的OR公式返回了FALSE響應,因為兩個公式中的所有三個參數都不正確。

對IF使用AND和OR (Using AND and OR with IF)
Because AND and OR are logical functions with TRUE and FALSE responses, you can also use them with IF. When you use IF, if an argument is TRUE, it returns one value; otherwise, it returns another value.
因為AND和OR是具有TRUE和FALSE響應的邏輯函數,所以也可以將它們與IF一起使用。 使用IF時,如果參數為TRUE,它將返回一個值;否則,將返回一個值。 否則,它將返回另一個值。
The format of a formula using IF is =IF(Argument, Value IF TRUE, Value IF FALSE)
. For example, as shown below,?=IF(E2=1,3,4)
?causes IF to return the number 3 if cell E2 equals 1; otherwise, it returns the number 4.
使用IF的公式的格式為=IF(Argument, Value IF TRUE, Value IF FALSE)
。 例如,如下所示,如果單元格E2等于1,則=IF(E2=1,3,4)
導致IF返回數字3; 否則,返回數字4。

Because IF only supports a single argument, you can use AND and OR to introduce complex logical tests with multiple arguments.
由于IF僅支持單個參數,因此可以使用AND和OR引入具有多個參數的復雜邏輯測試。
在IF上使用AND (Using AND with IF)
To use AND within an IF formula, type =IF(AND(AND Argument 1), Value IF TRUE, Value IF FALSE)
, and replace your AND argument (or arguments), and IF TRUE and IF FALSE values.
要在IF公式中使用AND,請鍵入=IF(AND(AND Argument 1), Value IF TRUE, Value IF FALSE)
,并替換您的AND參數(或多個參數)以及IF TRUE和IF FALSE值。
In our example below, we used IF with a nested AND formula in cell A2 with four arguments. All four arguments are correct, so the IF TRUE value (in this case, “Yes,”) is returned.
在下面的示例中,我們在單元格A2中使用具有嵌套AND公式的IF和四個參數。 所有四個參數都是正確的,因此返回IF TRUE值(在這種情況下為“是”)。

In cell A3, a similar IF with AND formula contains two incorrect arguments. As AND requires all arguments to be correct, IF returns the IF FALSE value, which is a different text value (“No”).
在單元格A3中,具有AND公式的類似IF包含兩個錯誤的參數。 由于AND要求所有參數正確,因此IF返回IF FALSE值,該值是不同的文本值(“否”)。
與IF一起使用OR (Using OR with IF)
The same as with AND, you can also use OR with IF to create a complex logical test. Only one OR argument has to be correct for IF to return a TRUE response.
與AND相同,您也可以將OR與IF一起使用以創建復雜的邏輯測試。 對于IF返回TRUE響應,只有一個OR參數必須正確。
To use OR with IF, click an empty cell and type =IF(OR(OR Argument 1), Value IF TRUE, Value IF FALSE)
.
要將OR與IF一起使用,請單擊一個空單元格,然后鍵入=IF(OR(OR Argument 1), Value IF TRUE, Value IF FALSE)
。
Replace the OR argument (or arguments), and your IF TRUE/FALSE values, as required.
根據需要替換OR參數(或多個參數)以及IF TRUE / FALSE值。
In our examples below, the two IF with OR formulas in cells A2 and A3 returned the IF TRUE text value (“Yes”). All four arguments are correct in the A2 IF with OR formula, while A3 has two incorrect arguments out of four.
在下面的示例中,單元格A2和A3中的兩個具有OR公式的IF返回IF TRUE文本值(“是”)。 在帶有OR公式的A2 IF中,所有四個參數都是正確的,而A3在四個中有兩個不正確的參數。

In cell A4, all four arguments in the IF with OR formula are incorrect. This is why the overall IF formula returns the IF FALSE text value (“No”), instead.
在單元格A4中,具有OR公式的IF中的所有四個參數都不正確。 這就是為什么整個IF公式返回IF FALSE文本值(“否”)的原因。
翻譯自: https://www.howtogeek.com/447561/how-to-use-the-and-and-or-functions-in-google-sheets/
谷歌瀏覽器的翻譯功能在哪