Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9632

Count occurrences across sheets, based on criteria

$
0
0

Is there an elegant—more programatic way—to count across sheets based on some criteria like whether they have been checked.

For example, given the attached sheets, the result would be:

Apples:     1
Oranges:    2
Watermelon: 1

The best formula I could come up with is :

=COUNTIFS(
  {
    '2020'!A:A;
    '2019'!A:A;
    '2018'!A:A
  }
  ,A1,
  {
    '2020'!B:B;
    '2019'!B:B;
    '2018'!B:B
  }
,"✓"
)

2020

2019

2018


Viewing all articles
Browse latest Browse all 9632

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>