Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 24
Default Counting unique instances of a text string

Is it possible to count unique instances of a text string

In column A (200+ entries) I have a list of Stores and Regions and want a formula to count the number of regions

Region A
Store X
Region B
Store Y
Region A
Store X
Region C

So in the simplified example above the count of unique regions would be 3
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Counting unique instances of a text string

Hi Paul,

Am Fri, 15 Feb 2013 18:04:58 +0000 schrieb Paul S:

Is it possible to count unique instances of a text string

In column A (200+ entries) I have a list of Stores and Regions and want
a formula to count the number of regions

Region A
Store X
Region B
Store Y
Region A
Store X
Region C


try:
=SUMPRODUCT((LEFT(A1:A300,6)="Region")/COUNTIF(A1:A300,A1:A300&""))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 24
Default

Quote:
Originally Posted by Claus Busch View Post
Hi Paul,

Am Fri, 15 Feb 2013 18:04:58 +0000 schrieb Paul S:

Is it possible to count unique instances of a text string

In column A (200+ entries) I have a list of Stores and Regions and want
a formula to count the number of regions

Region A
Store X
Region B
Store Y
Region A
Store X
Region C


try:
=SUMPRODUCT((LEFT(A1:A300,6)="Region")/COUNTIF(A1:A300,A1:A300&""))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Thanks Claus that worked
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
Counting instances in string John in Wembley Excel Discussion (Misc queries) 11 September 18th 07 06:51 PM
counting the number of instances of a string within another string Keith R Excel Worksheet Functions 3 March 5th 07 06:54 PM
counting instances of a character within a string mikelee101[_3_] Excel Programming 5 December 19th 05 04:40 AM
counting unique instances of text in a list WadeSansing Excel Worksheet Functions 5 June 1st 05 06:57 PM
Counting every unique text string in a column doctor rick Excel Worksheet Functions 2 December 15th 04 07:36 AM


All times are GMT +1. The time now is 05:28 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"