Identifying number of sequential numbers in a set of data in Excel

Clayton18

New Member
Joined
Dec 11, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
0
I'm looking for a formula or set of formula to find how many numbers are found to be sequential.
See below for what im looking for
1702355007541.png


Ive found the following formula that identifies what numbers are sequential. but it doesn't tell how many are in each range =IF(A3=A2+1,C2,IF(A3=A4-1,MAX(C$1:C1)+1,""))
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the MrExcel board!

You have shown us a "potential helper column (not row)", but what are your desired actual results for that sample data?
 
Upvote 0
Welcome to the MrExcel board!

You have shown us a "potential helper column (not row)", but what are your desired actual results for that sample data?
Sorry, the "potential helper row" is the desired actual results. Im hoping for the second row to count the sequential numbers
 
Upvote 0
second row
As I mentioned above, that is a column not a row (don't want to confuse your potential helpers with incorrect terminology ;))

I have also assumed that the very first value under the heading in the second column should be 4?
If so try the formula below, adjusting the ranges if required.

BTW, for the future , I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

23 12 12.xlsm
AB
1NumberResult
224
334
444
554
6562
7572
84 
952 
1013
1123
1233
135 
14205
15215
16225
17235
18245
19
20
21
Sequential
Cell Formulas
RangeFormula
B2:B18B2=IF(A2<>IFERROR(A1+1,"."),IF(A3<>A2+1,"",MATCH(TRUE,A3:A$21<>A2:A$20+1,0)),B1)
 
Upvote 0
Solution
As I mentioned above, that is a column not a row (don't want to confuse your potential helpers with incorrect terminology ;))

I have also assumed that the very first value under the heading in the second column should be 4?
If so try the formula below, adjusting the ranges if required.

BTW, for the future , I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

23 12 12.xlsm
AB
1NumberResult
224
334
444
554
6562
7572
84 
952 
1013
1123
1233
135 
14205
15215
16225
17235
18245
19
20
21
Sequential
Cell Formulas
RangeFormula
B2:B18B2=IF(A2<>IFERROR(A1+1,"."),IF(A3<>A2+1,"",MATCH(TRUE,A3:A$21<>A2:A$20+1,0)),B1)
Sorry, I obviously had a brain fart there!
Your formula has absolutely saved my life. Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top