Excel Magic Trick 1197: OR Criteria: Don’t Double Count: DCOUNTA, COUNTIFS, or SUMPRODUCT?

preview_player
Показать описание

See how take two columns of county numbers and kip codes and show unique list of county codes vertically, and then for each county code, list zips codes horizontally.
1. (00:09) OR Criteria Double Count Problem when criteria are coming from Two Columns
2. (01:33) DCOUNT function formula
3. (03:35) COUNTIFS function formula (3 COUNTIFS in one formula)
4. (06:35) SUMPRODUCT function formula (Array Formula)
5. (10:28) Timing all 2 formulas
Рекомендации по теме
Комментарии
Автор

Excel Magic Trick 1197: OR Criteria: Don’t Double Count: DCOUNTA, COUNTIFS, or SUMPRODUCT?
See how take two columns of county numbers and kip codes and show unique list of county codes vertically, and then for each county code, list zips codes horizontally.
1. (00:09) OR Criteria Double Count Problem when criteria are coming from Two Columns
2. (01:33) DCOUNT function formula
3. (03:35) COUNTIFS function formula (3 COUNTIFS in one formula)
4. (06:35) SUMPRODUCT function formula (Array Formula)
5. (10:28) Timing all 2 formulas

excelisfun
Автор

Hi Mike!

Another Option (Non CSE too):
=SUM(COUNTIF(A4:B13, {"Sioux", "Bobby Soxs"}))-COUNTIFS(A4:A13, D4, B4:B13, E4)

Or this (Non CSE):
=SUM(SIGN(MMULT(--(A4:B13=D4:E4), {1;1})))

Blessings!

JohnVergaraD
Автор

Watched this for the first time off the back of seeing Mynda Treacy's new one on Sumproduct using the
SIGN to avoid doubling, Hope you don't mind the mention.

williamarthur
Автор

That thing with the SUMPRODUCT is very important.
Thanks for another great video

לירןזיידמן-גי
Автор

Amazing use of the SUMPRODUCT function Mike! Thanks for sharing!

MySpreadsheetLab
Автор

Hey Mike
How can I delete double cout 

=VLOOKUP(1;{"1, 100";"2, 200"};2;0)

Reduce_Scan
Автор

Hi Mike
How do I find the first non-zero value inside match 
In other words
What is the value that was looking for out of order for the first number other than zero

=MATCH(;{0;0;0;1;0;2;3})

Reduce_Scan
Автор

Great explanation, as always. :-)
"+" or "*" as boolean logic is the best :-)
Thanks !!

BillSzysz
Автор

What about 2 different criteria from the same column?

chrisbenton
Автор

How were you able to time how long the formulas took?

nicholasniedzielski
Автор

'Love your instructional videos.  Watching this one, however, requires a comment on language.  "Criteria" is a plural word.  "Criterion" is the singular form.  Your column headings therefore should read "Criterion 1" and "Criterion 2".  From a friendly grammarian.

heatherlloyd
Автор

ExcellsFun is my uncle no kidding and his son Isaac Girvin is my cousin!

levelzeroD
Автор

Hi Mike
I want to count this number without duplication
In this example I want result 3
how this


Reduce_Scan