Numbers ranging from eg 1 to 10 that do not appear in the selected range?

malijela1

New Member
Joined
Dec 13, 2017
Messages
4
Hello everyone,
How to find numbers ranging from eg 1 to 10 that do not appear in the selected range?
Which formula to write in H2, I2, J2..?

[TABLE="width: 209"]
<colgroup><col span="11"></colgroup><tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]9[/TD]
[TD]2[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]1
[/TD]
[TD]3[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD]6[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]6[/TD]
[TD]2[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD]6[/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD]4[/TD]
[TD]9[/TD]
[TD]9[/TD]
[TD]6[/TD]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD][/TD]
[TD]7[/TD]
[TD]6[/TD]
[TD]2[/TD]
[TD]7[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD][/TD]
[TD]6[/TD]
[TD]5[/TD]
[TD]7[/TD]
[TD]2[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]7[/TD]
[TD]5[/TD]
[TD]9[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD][/TD]
[TD]5[/TD]
[TD]9[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Here's one idea, I expect there will be a better solution.


Book1
BCDEFGHIJKLMN
29244213567810
35455712368910
46566412378910
5466271358910#N/A
69469412357810
7499671235810#N/A
87627613458910
9657261348910#N/A
10275951346810#N/A
115944412367810
Sheet2
Cell Formulas
RangeFormula
H2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:G2, ROW($A$1:$A$10)), 0))}
I2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:H2, ROW($A$1:$A$10)), 0))}
J2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:I2, ROW($A$1:$A$10)), 0))}
K2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:J2, ROW($A$1:$A$10)), 0))}
L2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:K2, ROW($A$1:$A$10)), 0))}
M2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:L2, ROW($A$1:$A$10)), 0))}
N2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:M2, ROW($A$1:$A$10)), 0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Gotcha, slight adjustment then


Book1
BCDEFGHIJK
29244213810
354557
465664
546627
694694
749967
876276
965726
1027595
1159444
Sheet2
Cell Formulas
RangeFormula
H2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:G11, ROW($A$1:$A$10)), 0))}
I2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:H11, ROW($A$1:$A$10)), 0))}
J2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:I11, ROW($A$1:$A$10)), 0))}
K2{=INDEX(ROW($A$1:$A$10), MATCH(0, COUNTIF($B2:J11, ROW($A$1:$A$10)), 0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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