Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default Compare a column of substring with another column of strings and get count

Below is the scenario. I have 2 columns. Column A has some article Ids (IS123, IS1234, etc.). Column X has Solutions provided to customer, where this article Id would be a reference (substring.)

I need the to compare each article Id (column A) with all solutions provided (Column X) and get the count of occurrences of each article Id in Column B.

Please Help!!

-Shanmu
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default Compare a column of substring with another column of strings and get count

Shanmu has brought this to us :
Below is the scenario. I have 2 columns. Column A has some article Ids
(IS123, IS1234, etc.). Column X has Solutions provided to customer,
where this article Id would be a reference (substring.)

I need the to compare each article Id (column A) with all solutions
provided (Column X) and get the count of occurrences of each article Id
in Column B.

Please Help!!

-Shanmu


The COUNTIF() function is what you need, and usage can be found under
the Function Reference in online help.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #3   Report Post  
Member
 
Location: Bangalore
Posts: 41
Thumbs up

Quote:
Originally Posted by Shanmu View Post
Below is the scenario. I have 2 columns. Column A has some article Ids (IS123, IS1234, etc.). Column X has Solutions provided to customer, where this article Id would be a reference (substring.)

I need the to compare each article Id (column A) with all solutions provided (Column X) and get the count of occurrences of each article Id in Column B.

Please Help!!

-Shanmu
Hi,

Try this...

=COUNTIF(B2:B4,"*"&A2&"*")

As per your scenario the ID is in cell A2 and the searched text is in the B2:B4 range. You may change references as per your use.

Let me know if it works.

Thanks,
Prashant
  #4   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by jack_n_bub View Post
Hi,

Try this...

=COUNTIF(B2:B4,"*"&A2&"*")

As per your scenario the ID is in cell A2 and the searched text is in the B2:B4 range. You may change references as per your use.

Let me know if it works.

Thanks,
Prashant

Excellent Prashant... It works. 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
Count Unique Values in 1 Column based on Date Range in another Column Brian Excel Worksheet Functions 14 May 17th 09 02:58 PM
compare data in column A with column B to find duplicates George Excel Discussion (Misc queries) 8 February 6th 09 03:53 PM
compare cells in column to criteria, then average next column cell Bradwin Excel Worksheet Functions 2 July 21st 08 08:37 PM
How do I compare string values in one column to another column? Nick N. Excel Worksheet Functions 1 April 29th 06 02:56 AM
Compare one Column to a Second Column Formula Help Needed jeffc Excel Worksheet Functions 1 April 13th 06 03:23 PM


All times are GMT +1. The time now is 07:17 AM.

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"