How do I write a formula to display missing numbers from 1 to 10?

How about:

Excel Formula:
=FILTER(ROW(INDIRECT("1:10")), ISNA(MATCH(ROW(INDIRECT("1:10")), $A$1:$A$5, 0)))
 
Upvote 0
Book1
CDEF
32135
435107
54828
6696
7109
871
94
Sheet1
Cell Formulas
RangeFormula
D3:D6,F3:F5D3=FILTER(SEQUENCE(10),COUNTIF(C:C,SEQUENCE(10))=0)
Dynamic array formulas.
 
Upvote 0
An non-volatile option
Excel Formula:
=LET(s,SEQUENCE(10),FILTER(s,ISNA(XMATCH(s,A2:A10))))
 
Upvote 0
Solution
=UNIQUE(TOCOL(HSTACK(A1:A6,SEQUENCE(10))),,TRUE)

Sorry, I guess you need Excel 365 for this.
 
Upvote 0
I think this will work in Excel 2021

=UNIQUE(TOCOL(CHOOSE({1,2},A1:A6,SEQUENCE(10))),,TRUE)
 
Upvote 0
A prehistoric type approach :cool:

In C2 copied down as far as required

=IFERROR(SMALL(IF(COUNTIF(A$2:A$6,{1,2,3,4,5,6,7,8,9,10})=0,{1,2,3,4,5,6,7,8,9,10}),ROWS(C$2:C2)),"")
 
Upvote 0

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