Counting Number If Not Sequence

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all..
i have a list.. but into list contains "jumping" number / not series..
how to determine , count of number not series / not sequence
date Query function with date filter.xlsx
G
2sequences list
31
42
53
65
78
89
910
1011
1113
1214
1317
Sheet1

the answer is 6, how to determine it?
6 from (4,6,7,12.15.16 as jumping number)
please, don't use helper column
thank in advance

susanto
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You could try this matrix (could be matrix, close with ctrl+shft+return)

Excel Formula:
=SUMPRODUCT(--ISERROR(MATCH(ROW(INDIRECT("1:"& MAX(G3:G13)));G3:G13;0)))
 
Upvote 0
Not in your Excel version :)
 
Upvote 0
sorry JEC, when i change number in a cell (not last cell) ...the result not work.
i'm using Excel 2013 not 365
 
Upvote 0
It should work when you add numbers
 
Upvote 0
sorry JEC, when i change number in a cell (not last cell) ...the result not work.

Here are some other formulae that may work for you, depending on what your numbers might look like (you've only posted one sample).

ABCD
1Ascending,Random,Random,
2No duplicatesNo duplicatesWith duplicatesJEC
31141414
42333
53122
651333
78233
891055
910999
1011111111
1113171717
1214555
1317888
14
156688
Sheet1
Cell Formulas
RangeFormula
A15A15=A13-A3-COUNT(A3:A13)+1
B15B15=MAX(B3:B13)-MIN(B3:B13)-COUNT(B3:B13)+1
C15C15=MAX(C3:C13)-MIN(C3:C13)-SUMPRODUCT(1/COUNTIF(C3:C13,C3:C13))+1
D15D15=SUMPRODUCT(--ISERROR(MATCH(ROW(INDIRECT(MIN(D3:D13) & ":" & MAX(D3:D13))),D3:D13,0)))
 
Upvote 0
Solution
seq1.png

if number update not in last cell (number 20), the result is wrong
my data ascending and not duplicate
 
Upvote 0
Alternative non-array formula, unique number in any order:

Code:
=SUMPRODUCT(--(FREQUENCY($G$3:$G$13,ROW(INDIRECT(MIN(G3:G13)&":"&MAX(G3:G13))))=0))-1

Enter only.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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