Is there any function that can return the next missing number from a column with ascending numbers?
The highest number can be anything and there can be several numbers missing after each other.
Also the same number will not appear twice.
I only need to find the next missing number.
Or if no function works, I can use VBA, but prefer not.
The highest number can be anything and there can be several numbers missing after each other.
Also the same number will not appear twice.
I only need to find the next missing number.
Code:
Ex:
-| A | B |
1| 1 | (Function to return "3")
2| 2 |
3| 4 |
4| 7 |
5| 8 |
6| 9 |
7| |
8|
9|
Last edited: