Home |
Search |
Today's Posts |
#1
|
|||
|
|||
countif function.....
this should be an easy one but i can't seem to figure it
out.....i'm comparing data in two columns, i would like to count the number of cells in "b" that have the same data as "a" ie: if a4 contains "john" and b4 contains "john" then i want to count b4....etc.. thanks |
#2
|
|||
|
|||
Ctrl/shift/enter:
=SUM(1*NOT(ISNA(MATCH(A1:A100,B1:B100,0)))) Bob Umlas ExcelMVP "johnT" wrote in message ... this should be an easy one but i can't seem to figure it out.....i'm comparing data in two columns, i would like to count the number of cells in "b" that have the same data as "a" ie: if a4 contains "john" and b4 contains "john" then i want to count b4....etc.. thanks |
#3
|
|||
|
|||
Another way
=SUMPRODUCT(--(COUNTIF(A1:A100,B1:B100))) -- Regards, Peo Sjoblom (No private emails please, for everyone's benefit keep the discussion in the newsgroup/forum) "johnT" wrote in message ... this should be an easy one but i can't seem to figure it out.....i'm comparing data in two columns, i would like to count the number of cells in "b" that have the same data as "a" ie: if a4 contains "john" and b4 contains "john" then i want to count b4....etc.. thanks |
#4
|
|||
|
|||
Hi
if they have to be in the same row try: =SUMPRODUCT(--(A1:A100=B1:B10)) -- Regards Frank Kabel Frankfurt, Germany "johnT" schrieb im Newsbeitrag ... this should be an easy one but i can't seem to figure it out.....i'm comparing data in two columns, i would like to count the number of cells in "b" that have the same data as "a" ie: if a4 contains "john" and b4 contains "john" then i want to count b4....etc.. thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
using countif function to add only a half of a number | Excel Discussion (Misc queries) | |||
something wrong with my "countif" function | Excel Discussion (Misc queries) | |||
Advanced COUNTIF Function | Excel Worksheet Functions | |||
The countif function in Excel 2002. | Excel Worksheet Functions | |||
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION | Excel Worksheet Functions |