Jan 21 2021 08:07 AM - edited Jan 21 2021 08:13 AM
Dear colleagues,
I got stuck at a point I'm in need of you expert advice.:)
I wonder whether is it feasible to pick more than one value for each criteria. For instance, given the following expression:
=COUNTIFS('All OEs'!D:D;"Greengrocer's";'All OEs'!J:J;"Orange";'All OEs'!X:X;"Below Midpoint")
I would like to add another value to be counted along "Orange". Let's say I want the system to count oranges and apples at the same time.
Do you happen to know how?
Thanks a lot!
Jan 21 2021 08:49 AM
You can use
=SUM(COUNTIFS('All OEs'!D:D;"Greengrocer's";'All OEs'!J:J;{"Apple","Orange"};'All OEs'!X:X;"Below Midpoint"))
Jan 22 2021 06:41 AM - edited Jan 22 2021 06:42 AM
@Hans Vogelaar I tried entering the following expression: =SUM(COUNTIFS('All OEs'!D:D;"Greengrocer's";'All OEs'!G:G;{"Orange","Apple"};'All OEs'!X:X;"Below Midpoint")) but it triggered an error message. Is there any other way?
Thanks a lot!
Jan 22 2021 06:48 AM
Solution
Does this work?
=SUM(COUNTIFS('All OEs'!D:D;"Greengrocer's";'All OEs'!G:G;{"Orange"\"Apple"};'All OEs'!X:X;"Below Midpoint"))
(With SUM and COUNTIFS translated to SUMA and CONTAR.SI.CONJUNTO if necessary)
Jan 27 2021 04:37 AM
Jan 27 2021 05:15 AM
Yes, you can use this multiple times.
Jan 22 2021 06:48 AM
Solution
Does this work?
=SUM(COUNTIFS('All OEs'!D:D;"Greengrocer's";'All OEs'!G:G;{"Orange"\"Apple"};'All OEs'!X:X;"Below Midpoint"))
(With SUM and COUNTIFS translated to SUMA and CONTAR.SI.CONJUNTO if necessary)