R
Rick D
I submitted a question several weeks ago and I did receive
several solutions - one of which I used (thank you to
whoever posted them). However, now we need to take it to
the next level.
I have a column of phone extensions. Valid numbers are
1000-9999, however, not all of these extension numbers are
being used. We want an automated way of having a separate
column display all of the available (free) numbers that do
not show up in this numerical sequence.
So what I have currently is column A listing all of the
extensions. Column B is where the following formula is:
=IF(A1<>A2-1, A1+1,0). I drag this formula down the column
to match the length of the numbers in column A.
This will either give me a 0 if there is no missing number
in the sequence, or the missing number. So for instance,
this is a sample of what I get in columns A & B:
1000 0
1001 0
1002 1003
1005 1006
1007 0
1008 0
1009 0
1010 0
Unfortunately as you can see, this only gives me the first
number in the gap. I could drag the formula to the right
into subsequent columns and this will display more missing
numbers, but if there is a gap of 50 free numbers, that
doesn't really make it easy to display or print out.
Therefore, I would like to know if there's a way of having
a column set up to report (say, Column C), from top to
bottom, all of the available extensions from Column A.
I'm assuming that it would need to count the numbers in
Column A and determine the length of each missing number
gap, and from there, be able to spit back what those
numbers are.
I'm not a coder, so I hope I explained this simply enough!
Any help would be greatly appreciated on this.
Thanks.
-Rick
several solutions - one of which I used (thank you to
whoever posted them). However, now we need to take it to
the next level.
I have a column of phone extensions. Valid numbers are
1000-9999, however, not all of these extension numbers are
being used. We want an automated way of having a separate
column display all of the available (free) numbers that do
not show up in this numerical sequence.
So what I have currently is column A listing all of the
extensions. Column B is where the following formula is:
=IF(A1<>A2-1, A1+1,0). I drag this formula down the column
to match the length of the numbers in column A.
This will either give me a 0 if there is no missing number
in the sequence, or the missing number. So for instance,
this is a sample of what I get in columns A & B:
1000 0
1001 0
1002 1003
1005 1006
1007 0
1008 0
1009 0
1010 0
Unfortunately as you can see, this only gives me the first
number in the gap. I could drag the formula to the right
into subsequent columns and this will display more missing
numbers, but if there is a gap of 50 free numbers, that
doesn't really make it easy to display or print out.
Therefore, I would like to know if there's a way of having
a column set up to report (say, Column C), from top to
bottom, all of the available extensions from Column A.
I'm assuming that it would need to count the numbers in
Column A and determine the length of each missing number
gap, and from there, be able to spit back what those
numbers are.
I'm not a coder, so I hope I explained this simply enough!
Any help would be greatly appreciated on this.
Thanks.
-Rick