Hello,
I need VBA for following task numbers are in column “A” if I select prior or code provide selection option after it is run for example I select the range A11:A23 Highlighted in yellow VBA find Min & Max range in selection and list missing number in column C as shown.
In given example in the selected range lowest number is 2 and highest number is 15 find missing between (2-15) in column C
Thanks In Advance
Regards,
Moti
I need VBA for following task numbers are in column “A” if I select prior or code provide selection option after it is run for example I select the range A11:A23 Highlighted in yellow VBA find Min & Max range in selection and list missing number in column C as shown.
In given example in the selected range lowest number is 2 and highest number is 15 find missing between (2-15) in column C
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Numbers | Missing Numbers | |||
2 | 16 | 5 | |||
3 | 7 | 8 | |||
4 | 14 | 10 | |||
5 | 4 | 12 | |||
6 | 15 | 13 | |||
7 | 33 | ||||
8 | 3 | ||||
9 | 4 | ||||
10 | 1 | ||||
11 | 14 | ||||
12 | 6 | ||||
13 | 2 | ||||
14 | 15 | ||||
15 | 7 | ||||
16 | 15 | ||||
17 | 6 | ||||
18 | 9 | ||||
19 | 2 | ||||
20 | 11 | ||||
21 | 3 | ||||
22 | 4 | ||||
23 | 2 | ||||
24 | 24 | ||||
25 | 7 | ||||
26 | 9 | ||||
27 | 5 | ||||
28 | 20 | ||||
Sheet1 |
Thanks In Advance
Regards,
Moti