Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
johnT
 
Posts: n/a
Default 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   Report Post  
Bob Umlas
 
Posts: n/a
Default

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   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

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   Report Post  
Frank Kabel
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using countif function to add only a half of a number ryanjh79 Excel Discussion (Misc queries) 9 April 26th 23 03:42 AM
something wrong with my "countif" function ryanjh79 Excel Discussion (Misc queries) 3 December 17th 04 06:59 PM
Advanced COUNTIF Function License Boy Excel Worksheet Functions 3 December 8th 04 02:23 PM
The countif function in Excel 2002. Lounsbud Excel Worksheet Functions 1 November 22nd 04 03:19 PM
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION Marty Excel Worksheet Functions 1 November 11th 04 09:45 PM


All times are GMT +1. The time now is 11:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"