#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default text comparision

I have two columns of names, they include commas seperating last first
etc...how to I do a text comparision function to see if a cell in
column 1 is in the range of cells in column two one cell at a time?

thanks..

Countif doesn't seem to work

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default text comparision

"Blah" wrote ...
I have two columns of names, they include commas seperating last first
etc...how to I do a text comparision function to see if a cell in
column 1 is in the range of cells in column two one cell at a time?
thanks..
Countif doesn't seem to work


How are you using Countif?

=COUNTIF(B$1:B$100,A1)

Or:

=ISNUMBER(MATCH(A1,B$1:B$100,0))

Biff




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default text comparision


Biff wrote:
"Blah" wrote ...
I have two columns of names, they include commas seperating last first
etc...how to I do a text comparision function to see if a cell in
column 1 is in the range of cells in column two one cell at a time?
thanks..
Countif doesn't seem to work


How are you using Countif?

=COUNTIF(B$1:B$100,A1)

Or:

=ISNUMBER(MATCH(A1,B$1:B$100,0))

Biff


Using

=COUNTIF(D$2:D$200, B2)



Abajian, Aaron Christopher

won't match with
Abajian, Aaron Christopher


even though they are on B2 and D2 respectively

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default text comparision


make sure there's no extra spaces by running a trim command on your
columns


--
MDubbelboer
------------------------------------------------------------------------
MDubbelboer's Profile: http://www.excelforum.com/member.php...o&userid=36330
View this thread: http://www.excelforum.com/showthread...hreadid=562287

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 227
Default text comparision

Your COUNTIF formula works for me. Checking the actual entries for
extra spaces or lack of a comma would be a logical step.

Blah wrote:
Biff wrote:
"Blah" wrote ...
I have two columns of names, they include commas seperating last first
etc...how to I do a text comparision function to see if a cell in
column 1 is in the range of cells in column two one cell at a time?
thanks..
Countif doesn't seem to work


How are you using Countif?

=COUNTIF(B$1:B$100,A1)

Or:

=ISNUMBER(MATCH(A1,B$1:B$100,0))

Biff


Using

=COUNTIF(D$2:D$200, B2)



Abajian, Aaron Christopher

won't match with
Abajian, Aaron Christopher


even though they are on B2 and D2 respectively




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default text comparision

Try this:

=SUMPRODUCT(--(TRIM(D$2:D$200)=TRIM(B2)))

If this works then that means you have leading/trailing spaces in either the
range or the comparison cell or even both.

Biff

"Blah" wrote in message
oups.com...

Biff wrote:
"Blah" wrote ...
I have two columns of names, they include commas seperating last first
etc...how to I do a text comparision function to see if a cell in
column 1 is in the range of cells in column two one cell at a time?
thanks..
Countif doesn't seem to work


How are you using Countif?

=COUNTIF(B$1:B$100,A1)

Or:

=ISNUMBER(MATCH(A1,B$1:B$100,0))

Biff


Using

=COUNTIF(D$2:D$200, B2)



Abajian, Aaron Christopher

won't match with
Abajian, Aaron Christopher


even though they are on B2 and D2 respectively



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
Aligning Wraped Text to the bottom of a cell Viking Excel Discussion (Misc queries) 2 July 7th 06 09:33 PM
Conversion to Text file format error Rob Excel Discussion (Misc queries) 1 June 26th 06 10:33 AM
Shade cell according to text? Ltat42a Excel Discussion (Misc queries) 0 January 3rd 06 06:37 PM
Using Concatenate function to generate text in Text Box Mary S. Charts and Charting in Excel 1 December 14th 05 08:55 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 12:25 AM.

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

About Us

"It's about Microsoft Excel"