Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Character count

I have few words in the range B2:B102. I have few more words in the
range I2:I10002. What I want to do is, compare the first word in the
range B2:B102 (B2.value) with first word in the range I2:I10002
(I2.value) and count how many characters (letters) are common and save
the count in the range C2.

Now compare B2 with I3 and list the count in C3. Go on comparing till
B2 with I10002 and list the count in C10002. Once this is finished,
move to second word in the range B2:B102 (B3.value).

Compare B3 with I2 and check the count. Now if this greater than the
value in cell C2, then update C2 with then new count else leave
C2.value as it is.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Character count


Let me explain the problem instead of the logic. By the way, there is
some change in the data. In the column B I have few names (it can be in
the format "first name and last name initial" or "first name initial
and last name" or "first name and last name full" or "only first name"
or "only last name"

...
I have few more names in the range I2:I582. These are unique names with
no duplicates.

...
In order to remove duplicates from the column B I want to compare every
name in column B with every name in the range I2:I582. I thought
counting characters would be the best way to eliminate the duplicates.

Please let me know your views.....


your method is right if in the I2:I582 you have all the names that you need
:-)

If not, it's quite difficult... one way could be to separate all the names
from the surnames and then choose (from the same surnames) only the surname
with the longest name.
This is not assuring a good selection anyway, it should be checked if there
are different names with the same surname for example

Bye

FM






  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Character count

The seperation is almost done.

Thank you.


FM wrote:
Let me explain the problem instead of the logic. By the way, there is
some change in the data. In the column B I have few names (it can be in
the format "first name and last name initial" or "first name initial
and last name" or "first name and last name full" or "only first name"
or "only last name"

..
I have few more names in the range I2:I582. These are unique names with
no duplicates.

..
In order to remove duplicates from the column B I want to compare every
name in column B with every name in the range I2:I582. I thought
counting characters would be the best way to eliminate the duplicates.

Please let me know your views.....


your method is right if in the I2:I582 you have all the names that you need
:-)

If not, it's quite difficult... one way could be to separate all the names
from the surnames and then choose (from the same surnames) only the surname
with the longest name.
This is not assuring a good selection anyway, it should be checked if there
are different names with the same surname for example

Bye

FM


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
count a character hsg Excel Discussion (Misc queries) 2 December 4th 09 05:52 PM
Character count dan Excel Discussion (Misc queries) 9 September 27th 07 07:57 PM
character count Mariappan New Users to Excel 3 September 6th 07 02:18 PM
character count ben Excel Programming 2 June 26th 06 04:30 PM
Character Count Hardip Excel Worksheet Functions 5 January 10th 06 01:46 PM


All times are GMT +1. The time now is 10:29 PM.

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"