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

Hi.... I need to count the number of times each store appears (LEFT by 4
characters):
edar wkub
edar02
edar02
edar01
wkub01
wkub02
emur01

Result: Store "edar" appears 3 times; "wkub" 2 etc.

Thank you very much!!!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count text

Try this...

=COUNTIF(A2:A7,"edar*")

=COUNTIF(A2:A7,"wkub*")

Or, using cells to hold the criteria...

B2 = edar
B3 = wkub

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

=COUNTIF(A2:A7,B3&"*")

--
Biff
Microsoft Excel MVP


"Kristina" wrote in message
...
Hi.... I need to count the number of times each store appears (LEFT by 4
characters):
edar wkub
edar02
edar02
edar01
wkub01
wkub02
emur01

Result: Store "edar" appears 3 times; "wkub" 2 etc.

Thank you very much!!!



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

Thank you so much, works perfectly!!

"T. Valko" wrote:

Try this...

=COUNTIF(A2:A7,"edar*")

=COUNTIF(A2:A7,"wkub*")

Or, using cells to hold the criteria...

B2 = edar
B3 = wkub

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

=COUNTIF(A2:A7,B3&"*")

--
Biff
Microsoft Excel MVP


"Kristina" wrote in message
...
Hi.... I need to count the number of times each store appears (LEFT by 4
characters):
edar wkub
edar02
edar02
edar01
wkub01
wkub02
emur01

Result: Store "edar" appears 3 times; "wkub" 2 etc.

Thank you very much!!!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Count text

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kristina" wrote in message
...
Thank you so much, works perfectly!!

"T. Valko" wrote:

Try this...

=COUNTIF(A2:A7,"edar*")

=COUNTIF(A2:A7,"wkub*")

Or, using cells to hold the criteria...

B2 = edar
B3 = wkub

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

=COUNTIF(A2:A7,B3&"*")

--
Biff
Microsoft Excel MVP


"Kristina" wrote in message
...
Hi.... I need to count the number of times each store appears (LEFT by
4
characters):
edar wkub
edar02
edar02
edar01
wkub01
wkub02
emur01

Result: Store "edar" appears 3 times; "wkub" 2 etc.

Thank you very much!!!






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 single Text in cells with multiple text entries WSC Excel Discussion (Misc queries) 6 January 9th 07 04:17 PM
count number of specified text within a text/cell Vikas Kumar Excel Discussion (Misc queries) 4 October 11th 06 12:43 PM
how do I count the number of times text in column A matches text i Sheila Excel Worksheet Functions 2 November 16th 05 10:20 PM
Formula to count text and alert me if a text appears more than twi Mike Excel Discussion (Misc queries) 1 August 29th 05 09:53 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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