A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

EXCEL-Numbers in Sequence



 
 
Thread Tools Display Modes
  #1  
Old May 15th, 2010, 06:23 PM posted to microsoft.public.excel.worksheet.functions
The Gasell
external usenet poster
 
Posts: 1
Default EXCEL-Numbers in Sequence

Hi,

Someone whou knows how to count the maximum amount of numbers that are in
consecutive sequence regardless of their position out of a selected numbers
of cells.

I have 7 cells which each can contain a number from 1-15.
E.g.: 1 4 3 10 8 5 11
Above the max is 3 numbers who are in consecutive sequence i.e. 3 4 5.

If someone knows how to make a formula to count this would be great.

The Gasell


  #2  
Old May 15th, 2010, 06:52 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default EXCEL-Numbers in Sequence

Try this...

Create this defined formula.

Goto the menu InsertNameDefine
Name: Seq
Refers to: =ROW(INDIRECT("1:15"))

Ok out

Then, assuming your data is in the range A2:A8.

Array entered** :

=MAX(FREQUENCY(IF(ISNUMBER(MATCH(Seq,A2:A8,0)),Seq ),IF(ISNA(MATCH(Seq,A2:A8,0)),Seq)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"The Gasell" wrote in message
...
Hi,

Someone whou knows how to count the maximum amount of numbers that are in
consecutive sequence regardless of their position out of a selected
numbers
of cells.

I have 7 cells which each can contain a number from 1-15.
E.g.: 1 4 3 10 8 5 11
Above the max is 3 numbers who are in consecutive sequence i.e. 3 4 5.

If someone knows how to make a formula to count this would be great.

The Gasell




  #3  
Old May 15th, 2010, 08:14 PM posted to microsoft.public.excel.worksheet.functions
Bernd P
external usenet poster
 
Posts: 613
Default EXCEL-Numbers in Sequence

On 15 Mai, 18:23, The Gasell
wrote:
Hi,

Someone whou knows how to count the maximum amount of numbers that are in
consecutive sequence regardless of their position out of a selected numbers
of cells.

I have 7 cells which each can contain a number from 1-15.
E.g.: 1 4 3 10 8 5 11
Above the max is 3 numbers who are in consecutive sequence i.e. 3 4 5.

If someone knows how to make a formula to count this would be great.

The Gasell


Hello,

If your data is in cells A1:A7, array-enter
=MAX(FREQUENCY(IF(0=--
ISNA(MATCH(ROW(INDIRECT(MIN(A1:A7)&":"&MAX(A1:A7)) ),A1:A7,0)),ROW(INDIRECT(MIN(A1:A7)&":"&MAX(A1:A7) ))),IF(--
ISNA(MATCH(ROW(INDIRECT(MIN(A1:A7)&":"&MAX(A1:A7)) ),A1:A7,0)),ROW(INDIRECT(MIN(A1:A7)&":"&MAX(A1:A7) )))))

Approach is identical to Biff's but would also work for any (not too
big) positive numbers (only 1 to 15 required here).

Regards,
Bernd
  #4  
Old May 16th, 2010, 07:36 PM posted to microsoft.public.excel.worksheet.functions
Herbert Seidenberg
external usenet poster
 
Posts: 1,113
Default EXCEL-Numbers in Sequence

Excel 2007 PivotTable
List and rank all sequences.
With sorted Table.
http://c0718892.cdn.cloudfiles.racks.../05_16_10.xlsx
Pdf preview:
http://www.mediafire.com/file/zmznjjz5nwy/05_16_10.pdf
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.