I need some formula or logic to retrieve the largest number of an array, but with certain criteria.
Just like the CONT.SES and SOMASES formulas that counts and adds the numbers of an array when the criteria are met.
Something that would work as a MAIOR.SES(IntervaloApuração;K;IntervaloCriterio1;Criterio1;...)
A simple example of how it would work:
+---+-------+-------+------------+
| | A | B | C |
+---+-------+-------+------------+
| 1 | Data | Ativo | Quantidade |
| 2 | 26/07 | SIM | 35 |
| 3 | 26/07 | SIM | 39 |
| 4 | 26/07 | NAO | 40 |
| 5 | 27/07 | SIM | 13 |
+---+-------+-------+------------+
If I want the most of the following criteria: data = 26/07
and Ativo = SIM
the result would return me the quantity of record 3 ie: 39
Someone with a solution?