Przykłady
Poniżej opisano działanie tego pola na tabeli
A |
B |
C |
|
1 |
Nazwa produktu |
Sprzedaże |
Przychód |
2 |
ołówek |
20 |
65 |
3 |
ołów |
35 |
85 |
4 |
notes |
20 |
190 |
5 |
książka |
17 |
180 |
6 |
piórnik |
nie |
nie |

We wszystkich przykładach poniżej, zakresy dla sumy obliczeń zawierają wiersz #6, który jest ignorowany, ponieważ zawiera tekst.
Func_Range; Range1; Criterion1 [ ; Range2; Criterion2 [;...]])

The logical relation between criteria can be defined as logical AND (conjunction). In other words, if and only if all given criteria are met, a value from the corresponding cell of the given Func_Range is taken into calculation.

Func_Range and Range1, Range2... must have the same size, otherwise the function returns err:502 - Invalid argument.
Criterion1 – required argument. A string expression representing a logical condition or a cell reference to such string expression. The expression can contain text, numbers, regular expressions or wildcards (if enabled in calculation options).
Zakres2 – Opcjonalnie. Zakres2 i wszystkie następujące oznaczają to samo co Zakres1.
Kryterium2 – opcjonalne. Kryterium2 i wszystkie następujące oznaczają to samo jak Kryterium1.
Ta funkcja może mieć do 255 argumentów, co oznacza, że można podać 127 zakresów kryteriów i kryteriów dla nich.

Jeśli komórka zawiera PRAWDA, jest traktowana jak 1. Jeśli zawiera FAŁSZ – jak 0 (zero).