Missing numbers

ACCA369

New Member
Joined
Dec 27, 2020
Messages
48
Office Version
  1. 2019
Platform
  1. Windows
  2. MacOS
Samples
29
32
9
5
25
12
13
24
16
14
0
22
3
7
12
19
5

Above sample data in Excel sheet 1 , column A:A

1) Need to find unique number in the samples and check missing number between 0 and 36
 
OFFSET is a volatile function so I would avoid it where reasonable alternatives are available. In this case you could consider these alternatives. I have used a helper cell (G2) to keep the formulas a bit shorter & more efficient. That column could be hidden if you want or the formulas could be written without using the helper if there was some particular reason for that.

ACCA369.xlsm
ABCDEFG
1SamplesUniqueMissingLast NAverage1st Index
229011012.28
33232
4954
5576
625128
712149
8131610
9241911
10162213
11142415
120 17
1322 18
143 20
157 21
1612 23
1719 25
185 26
19 27
20 28
21 29
22 30
23 31
24 32
25 33
26 34
27 35
28 36
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
Sheet3
Cell Formulas
RangeFormula
C2:C38C2=IFERROR(AGGREGATE(15,6,INDEX(A$2:A$500,G$2):INDEX(A$2:A$500,E$2+G$2-1)/ISNA(MATCH(INDEX(A$2:A$500,G$2):INDEX(A$2:A$500,E$2+G$2-1),C$1:C1,0)),1),"")
D2:D38D2=IFERROR(AGGREGATE(15,6,(ROW(INDEX(A:A,1):INDEX(A:A,37))-1)/ISNA(MATCH(ROW(INDEX(A:A,1):INDEX(A:A,37))-1,C$2:C$18,0)),ROWS(D$2:D2)),"")
F2F2=AVERAGE(INDEX(A2:A500,G2):INDEX(A2:A500,COUNT(A2:A500)))
G2G2=COUNT(A$2:A$500)-E$2+1
 
Upvote 0
Solution

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
This One?

Great alz you have simple formula Without any complications

and this just repeat
"(ROW(INDIRECT("1:37"))-1)" to avoid Press CTRL+SHIFT+ENTER to enter array formulas.
Book1
ABCD
1SamplesUniqueMissing
22901
33232
4954
5576
62598
7121210
8131311
9241415
10161617
11141918
1202220
13222421
1432523
1572926
16123227
1719 28
185 30
19 31
20 33
21 34
22 35
23 36
Sheet1
Cell Formulas
RangeFormula
C2:C23C2=IFERROR(AGGREGATE(15,6,($A$2:$A$18)/(FREQUENCY(MATCH($A$2:$A$18,$A$2:$A$18,0),MATCH($A$2:$A$18,$A$2:$A$18,0))>0),ROWS($C$2:C2)),"")
D2:D23D2=IFERROR(AGGREGATE(15,6,(ROW(INDIRECT("1:37"))-1)/(COUNTIFS($A$2:$A$18,(ROW(INDIRECT("1:37"))-1))=0),ROWS($D$2:D2)),"")
 
  • Like
Reactions: alz
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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