H
H
HeCorJlaCeH2020-12-21 20:46:51
Google Sheets
HeCorJlaCeH, 2020-12-21 20:46:51

How to count data from an array with a certain condition?

5fe0df1270b63990798091.png
=COUNTIFS(B:B; "Nike"; C:C; "L"; D:G; "green")
Array arguments have different

sizes array)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Boev, 2020-12-21
@ProgrammerForever

The simplest solution:

=СЧЁТЗ(ЕСЛИОШИБКА(FILTER(A:A;B:B="Nike";C:C="L";D:D="зеленый");0))+
  СЧЁТЗ(ЕСЛИОШИБКА(FILTER(A:A;B:B="Nike";C:C="L";E:E="зеленый");0))+
  СЧЁТЗ(ЕСЛИОШИБКА(FILTER(A:A;B:B="Nike";C:C="L";F:F="зеленый");0))+
  СЧЁТЗ(ЕСЛИОШИБКА(FILTER(A:A;B:B="Nike";C:C="L";G:G="зеленый");0))

A
Alexander Ivanov, 2020-12-23
@oshliaer

Possible variant
5fe2c94e4d3ae330529395.png

=ARRAYFORMULA(QUERY(
  SPLIT(FLATTEN(B2:B6 & "♡" & C2:C6 & "♡" & D2:G6);"♡");
  "select Col1, Col2, Col3, count(Col3) 
   where Col3 is not null 
   group by Col1, Col2, Col3 label count(Col3)''"
))

https://docs.google.com/spreadsheets/d/1ziMImIx8Gc...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question