Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Part 2 - Counting series of text/number sequence

This is in relation to my other post (same topic). Using the same table below:

A B C D E
1 W -0.5 2 2
0 W +0.5 2 2
0 D +0.5 2 1
0 W -0.5 1 2
1 D -0.5 1 0

I'm trying to get the formula to just count the number of occurences based
on the following conditions:
1) three (3) consecutive 0s are met in column A, then if match;
2) checks the subsequent row (row 5 for above) if cell C5 is a negative digit
(-0.5 in this case), it will just count it as 1. If its a positive digit
then 0.

The rows are updated on weekly basis, hence it has to cater for the
possibility of the sequence happening more than once. The formula cell will
just sum up the number of times the sequence occurs (where column C is
relative).

The other post had additional conditions but thanks to Lori and Biff, the
working formula was:

=SUM(IF((FREQUENCY(IF(A1:A9=0,ROW(A1:A9)),IF(A1:A9 <0,ROW(A1:A9),0))=3)
*(1-FREQUENCY(2,--A1:A9)),(C1:C9<0)*(D1:D9-E1:E9+C1:C90)))

Where do i modify the above to suit the conditions set forth in this post?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Part 2 - Counting series of text/number sequence

Anyone?

I've played around with the formula but to no avail. Any help would be
appreciated, thanks in advance.


"andrew" wrote:

This is in relation to my other post (same topic). Using the same table below:

A B C D E
1 W -0.5 2 2
0 W +0.5 2 2
0 D +0.5 2 1
0 W -0.5 1 2
1 D -0.5 1 0

I'm trying to get the formula to just count the number of occurences based
on the following conditions:
1) three (3) consecutive 0s are met in column A, then if match;
2) checks the subsequent row (row 5 for above) if cell C5 is a negative digit
(-0.5 in this case), it will just count it as 1. If its a positive digit
then 0.

The rows are updated on weekly basis, hence it has to cater for the
possibility of the sequence happening more than once. The formula cell will
just sum up the number of times the sequence occurs (where column C is
relative).

The other post had additional conditions but thanks to Lori and Biff, the
working formula was:

=SUM(IF((FREQUENCY(IF(A1:A9=0,ROW(A1:A9)),IF(A1:A9 <0,ROW(A1:A9),0))=3)
*(1-FREQUENCY(2,--A1:A9)),(C1:C9<0)*(D1:D9-E1:E9+C1:C90)))

Where do i modify the above to suit the conditions set forth in this post?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Part 2 - Counting series of text/number sequence

Help??

I tried a few ways to edit the below formula based on my original post, but
kept getting errors:

=SUM(IF((FREQUENCY(IF(A1:A9=0,ROW(A1:A9)),IF(A1:A9 <0,ROW(A1:A9),0))=3)*(1-FREQUENCY(2,--A1:A9)),(C1:C9<0)*(D1:D9-E1:E9+C1:C90)))

Still trying to figure out this (1-FREQUENCY(2,--A1:A9)) too...

"andrew" wrote:

Anyone?

I've played around with the formula but to no avail. Any help would be
appreciated, thanks in advance.


"andrew" wrote:

This is in relation to my other post (same topic). Using the same table below:

A B C D E
1 W -0.5 2 2
0 W +0.5 2 2
0 D +0.5 2 1
0 W -0.5 1 2
1 D -0.5 1 0

I'm trying to get the formula to just count the number of occurences based
on the following conditions:
1) three (3) consecutive 0s are met in column A, then if match;
2) checks the subsequent row (row 5 for above) if cell C5 is a negative digit
(-0.5 in this case), it will just count it as 1. If its a positive digit
then 0.

The rows are updated on weekly basis, hence it has to cater for the
possibility of the sequence happening more than once. The formula cell will
just sum up the number of times the sequence occurs (where column C is
relative).

The other post had additional conditions but thanks to Lori and Biff, the
working formula was:

=SUM(IF((FREQUENCY(IF(A1:A9=0,ROW(A1:A9)),IF(A1:A9 <0,ROW(A1:A9),0))=3)
*(1-FREQUENCY(2,--A1:A9)),(C1:C9<0)*(D1:D9-E1:E9+C1:C90)))

Where do i modify the above to suit the conditions set forth in this post?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 358
Default Part 2 - Counting series of text/number sequence

HELP?

"andrew" wrote:

Help??

I tried a few ways to edit the below formula based on my original post, but
kept getting errors:

=SUM(IF((FREQUENCY(IF(A1:A9=0,ROW(A1:A9)),IF(A1:A9 <0,ROW(A1:A9),0))=3)*(1-FREQUENCY(2,--A1:A9)),(C1:C9<0)*(D1:D9-E1:E9+C1:C90)))

Still trying to figure out this (1-FREQUENCY(2,--A1:A9)) too...

"andrew" wrote:

Anyone?

I've played around with the formula but to no avail. Any help would be
appreciated, thanks in advance.


"andrew" wrote:

This is in relation to my other post (same topic). Using the same table below:

A B C D E
1 W -0.5 2 2
0 W +0.5 2 2
0 D +0.5 2 1
0 W -0.5 1 2
1 D -0.5 1 0

I'm trying to get the formula to just count the number of occurences based
on the following conditions:
1) three (3) consecutive 0s are met in column A, then if match;
2) checks the subsequent row (row 5 for above) if cell C5 is a negative digit
(-0.5 in this case), it will just count it as 1. If its a positive digit
then 0.

The rows are updated on weekly basis, hence it has to cater for the
possibility of the sequence happening more than once. The formula cell will
just sum up the number of times the sequence occurs (where column C is
relative).

The other post had additional conditions but thanks to Lori and Biff, the
working formula was:

=SUM(IF((FREQUENCY(IF(A1:A9=0,ROW(A1:A9)),IF(A1:A9 <0,ROW(A1:A9),0))=3)
*(1-FREQUENCY(2,--A1:A9)),(C1:C9<0)*(D1:D9-E1:E9+C1:C90)))

Where do i modify the above to suit the conditions set forth in this post?

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 a series of text and/or numbers within columns andrew Excel Discussion (Misc queries) 17 June 25th 08 09:49 AM
Capturing a word sequence as part of a text in a spreadsheet cell T.Mad Excel Worksheet Functions 4 July 3rd 07 12:08 PM
2 part macro question (sequence & order) Kevin Excel Worksheet Functions 5 March 1st 07 10:08 PM
text & number sequence Sonny Dumas Excel Worksheet Functions 1 May 14th 06 02:45 AM
Indicate missing number in a sequence (Part II) mmock Excel Discussion (Misc queries) 3 February 22nd 06 07:13 PM


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