ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counting consecutive strings of text (https://www.excelbanter.com/excel-discussion-misc-queries/254629-counting-consecutive-strings-text.html)

SamG

Counting consecutive strings of text
 
Hi

I want to be able to count how many consecutive numbers are in a column but
once there is a break to count the next string in the same column. eg:

A
Apples
Apples
Apples
Apples
Apples
NA
NA
Apples
Apples
Apples
NA
.....

So the output that i want is to count the string of Apples (ie: 5) skip the
NA then give me a second output of 3.

Is this possible? Thanks

T. Valko

Counting consecutive strings of text
 
You need to be more specific...

Do you want something like this:

Apples
Apples
Apples
Apples
Apples....5
NA
NA
Apples
Apples
Apples...3
NA

--
Biff
Microsoft Excel MVP


"SamG" wrote in message
...
Hi

I want to be able to count how many consecutive numbers are in a column
but
once there is a break to count the next string in the same column. eg:

A
Apples
Apples
Apples
Apples
Apples
NA
NA
Apples
Apples
Apples
NA
....

So the output that i want is to count the string of Apples (ie: 5) skip
the
NA then give me a second output of 3.

Is this possible? Thanks




Jacob Skaria

Counting consecutive strings of text
 
Check out your previous post

http://www.microsoft.com/communities...6-8d71780c437f

--
Jacob


"SamG" wrote:

Hi

I want to be able to count how many consecutive numbers are in a column but
once there is a break to count the next string in the same column. eg:

A
Apples
Apples
Apples
Apples
Apples
NA
NA
Apples
Apples
Apples
NA
....

So the output that i want is to count the string of Apples (ie: 5) skip the
NA then give me a second output of 3.

Is this possible? Thanks



All times are GMT +1. The time now is 11:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com