find missing numbers in a sequence

excelNewbie22

Well-known Member
Joined
Aug 4, 2021
Messages
510
Office Version
  1. 365
Platform
  1. Windows
hi!
how to found missing numbers in a sequence of numbers (row or column), with stating the range inside the formula, like 1-50 or 1-40


test
AB
1formula for missing numbers?
231
352
474
596
6118
71210
81513
92214
102716
113317
123418
133519
144020
1521
1623
1724
1825
1926
2028
2129
2230
2331
2432
2536
2637
2738
2839
test
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about
Fluff.xlsm
KL
1formula for missing numbers?
231
352
474
596
6118
71210
81513
92214
102716
113317
123418
133519
144020
1521
1623
1724
1825
1926
2028
2129
2230
2331
2432
2536
2637
2738
2839
Data
Cell Formulas
RangeFormula
L2:L28L2=WORKDAY.INTL(0,SEQUENCE(MAX(K2:K20)-COUNT(K2:K20)),"0000000",K2:K20)
Dynamic array formulas.
 
Upvote 0
it's good,
but it complete the missing numbers up to the last one entered (for the above example 40),
and i need it to completed to a fixed range, like always up to 50 regardless of the last value entered
 
Upvote 0
Into B2:

Excel Formula:
=LET(a,SEQUENCE(MAX($A$2:$A$20),,1,1),b,IFERROR(MATCH(a,$A$2:$A$20,0),0),c,IF(b,0,a),FILTER(c,c<>0))
 
Upvote 0
I found this while searching the web - see if this helps

Book8
AB
131
252
374
496
5118
61210
71513
82214
92716
103317
113418
123519
134020
1421
1523
1624
1725
1826
1928
2029
2130
2231
2332
2436
2537
2638
2739
Sheet1
Cell Formulas
RangeFormula
B1:B27B1=IFERROR(SMALL(IF(ISNA(MATCH(ROW(A$1:A$40),A$1:A$40,0)),ROW(A$1:A$40)),ROW(A1)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
and i need it to completed to a fixed range, like always up to 50 regardless of the last value entered

Ok, how about
Fluff.xlsm
JKL
1formula for missing numbers?
2131
35052
474
596
6118
71210
81513
92214
102716
113317
123418
133519
144020
1521
1623
1724
1825
1926
2028
2129
2230
2331
2432
2536
2637
2738
2839
2941
3042
3143
3244
3345
3446
3547
3648
3749
3850
39
Data
Cell Formulas
RangeFormula
L2:L38L2=WORKDAY.INTL(0,SEQUENCE(J3-J2+1-COUNT(K2:K20)),"0000000",K2:K20)
Dynamic array formulas.
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,362
Messages
6,124,502
Members
449,166
Latest member
hokjock

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