COUNT Formula??

D

dannyboy213

I have 2 columns. Col. A is number values. Col. B is text Name data
What is the formula to count the number in Col. A IF the Col. B i
equal to a specific text name data. life "Stefanie"

A B
1 Danny
1 Stefanie
1 Danny
1 Danny
1 Dann
 
P

Peo Sjoblom

What does that mean? Do you mean that there are blanks in the number column
and they should not be counted?
If so use

=SUMPRODUCT(--(A1:A10<>""),--(B1:B10="Stefanie"))

Or do you mean unique numbers in the first column with a name criteria, also
wouldn't it be reasonable that when you exemplify your problem that you
actually use something that is closer to the data you are working with than
to use
2 names and one number? Regardless

=SUM(--(FREQUENCY(IF(B1:B10="Stefanie",MATCH(A1:A10,A1:A10,0)),ROW(INDIRECT("1:"&ROWS(A1:A10))))>0))

array entered will count the unique numbers in the A where B is "Stefanie"

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"dannyboy213" <[email protected]>
wrote in message
news:[email protected]...
 
Top