Count unique numbers in a range with a given criteria
Try this:
With
A2:A100 containing supplier numbers, text, or blanks
B2:B100 containing dates
and
D1: (a date to count uniques for....eg 01/01/2007)
This ARRAY FORMULA returns the count unique numeric values from Col_A where
the date in Col_B equals D1
E1:
=COUNT(1/FREQUENCY(IF($B$2:$B$100=D1,IF(ISNUMBER($A$2:$A$10 0),MATCH($A$2:$A$100,$A$2:$A$100,0))),ROW($A$2:$A$ 100)-ROW($A$2)+1))
Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter], instead of just pressing [Enter].
Enter more dates under D1 and copy the E1 formula down
Is that something you can work with?
***********
Regards,
Ron
XL2002, WinXP
"Nelson" wrote:
Hi!
How can I count the unique numbers in a range where I have numbers, blank
cells and text, everytime a condition is met?
It's like this:
Source page
Supplier NÂș Date
28000 01-01-2007
28001 01-01-2007
jtrjkfff 01-01-2007
28000 01-01-2007
28001 02-01-2007
(blank) 02-01-2007
ddfgdr 02-01-2007
28001 02-01-2007
Results page
Date Count of Suppliers
01-01-2007 2
02-01-2007 1
...
Thanks a lot!
|