Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Sam Sam is offline
external usenet poster
 
Posts: 699
Default count the amount of times a two letters appears in text string

please help!!

I have a column of different sequenced letters.eg
AD
AFD
AC
AFDE
ADEF

I want to count the amount of times that both "A" and "D" occur in the data
set (4).
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default count the amount of times a two letters appears in text string

=SUMPRODUCT(--(ISNUMBER(SEARCH("A*D",A1:A5))))


"Sam" wrote:

please help!!

I have a column of different sequenced letters.eg
AD
AFD
AC
AFDE
ADEF

I want to count the amount of times that both "A" and "D" occur in the data
set (4).

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default count the amount of times a two letters appears in text string

Using COUNTIF() in Col A

=COUNTIF(A:A,"*A*D*")

If this post helps click Yes
---------------
Jacob Skaria


"Sam" wrote:

please help!!

I have a column of different sequenced letters.eg
AD
AFD
AC
AFDE
ADEF

I want to count the amount of times that both "A" and "D" occur in the data
set (4).

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default count the amount of times a two letters appears in text string

Do you want to count if those 2 letters appear *in any order* ? For
example:

DFA

Should that be counted?

--
Biff
Microsoft Excel MVP


"Sam" wrote in message
...
please help!!

I have a column of different sequenced letters.eg
AD
AFD
AC
AFDE
ADEF

I want to count the amount of times that both "A" and "D" occur in the
data
set (4).



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 the number of times specific text appears in a column Nannie Excel Worksheet Functions 5 August 27th 08 07:09 PM
Sum the amount of times a number appears in a column in Excel? SEMonroe Excel Worksheet Functions 2 July 16th 08 04:17 PM
count no of times a letter occurs in a text string nishad Excel Discussion (Misc queries) 4 January 10th 08 03:13 PM
count number of times text appears MMcQ Excel Discussion (Misc queries) 3 February 9th 07 07:33 PM
How to count the number of times a string appears in a column? btsray Excel Worksheet Functions 0 January 25th 06 10:15 PM


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