finding gaps in numbers

thewho

New Member
Joined
Jan 6, 2010
Messages
9
Hello,

I am trying to find some gaps in a set of numbers. I did find this video (https://www.youtube.com/watch?v=_jel_Otcgds) however it did not work for my set of numbers. possibly due to how the numbers are formatted. These numbers are formatted using a custom format field. I have listed below some sample numbers. I am trying to find out the following
A) find out if there is a gap in the numbers
B) use a formula to fill in that gap

I don't think that this all can be done in one formula however it is past my level of understanding.


<colgroup width="117"></colgroup> <tbody>
[TD="align: center"]3-33-1309-0-0[/TD]

[TD="align: center"]3-33-1314-0-0[/TD]

[TD="align: center"]3-33-1311-0-0[/TD]

[TD="align: center"]3-33-1316-0-0[/TD]

[TD="align: center"]3-33-1313-0-0[/TD]

[TD="align: center"]3-33-1320-0-0[/TD]

[TD="align: center"]3-33-1322-0-0[/TD]

[TD="align: center"]3-33-1324-0-0[/TD]

[TD="align: center"]3-33-1330-0-0[/TD]

[TD="align: center"]3-33-1332-0-0[/TD]

[TD="align: center"]3-27-9709-0-0[/TD]

[TD="align: center"]3-34-1390-0-0[/TD]

[TD="align: center"]3-34-1306-0-0[/TD]

[TD="align: center"]3-34-1308-0-0[/TD]

[TD="align: center"]3-34-1312-0-0[/TD]

</tbody>
<style type="text/css"> body,div,table,thead,tbody,tfoot,tr,th,td,p { font-family:"Arial"; font-size:x-small } a.comment-indicator:hover + comment { background:#ffd; position:absolute; display:block; border:1px solid black; padding:0.5em; } a.comment-indicator { background:red; display:inline-block; border:1px solid black; width:0.5em; height:0.5em; } comment { display:none; } </style>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hello,

I am trying to find some gaps in a set of numbers. I did find this video (https://www.youtube.com/watch?v=_jel_Otcgds) however it did not work for my set of numbers. possibly due to how the numbers are formatted. These numbers are formatted using a custom format field. I have listed below some sample numbers. I am trying to find out the following
A) find out if there is a gap in the numbers
B) use a formula to fill in that gap

I don't think that this all can be done in one formula however it is past my level of understanding.


<colgroup width="117"></colgroup> <tbody>
[TD="align: center"]3-33-1309-0-0[/TD]

[TD="align: center"]3-33-1314-0-0[/TD]

[TD="align: center"]3-33-1311-0-0[/TD]

[TD="align: center"]3-33-1316-0-0[/TD]

[TD="align: center"]3-33-1313-0-0[/TD]

[TD="align: center"]3-33-1320-0-0[/TD]

[TD="align: center"]3-33-1322-0-0[/TD]

[TD="align: center"]3-33-1324-0-0[/TD]

[TD="align: center"]3-33-1330-0-0[/TD]

[TD="align: center"]3-33-1332-0-0[/TD]

[TD="align: center"]3-27-9709-0-0[/TD]

[TD="align: center"]3-34-1390-0-0[/TD]

[TD="align: center"]3-34-1306-0-0[/TD]

[TD="align: center"]3-34-1308-0-0[/TD]

[TD="align: center"]3-34-1312-0-0[/TD]

</tbody>
<style type="text/css"> body,div,table,thead,tbody,tfoot,tr,th,td,p { font-family:"Arial"; font-size:x-small } a.comment-indicator:hover + comment { background:#ffd; position:absolute; display:block; border:1px solid black; padding:0.5em; } a.comment-indicator { background:red; display:inline-block; border:1px solid black; width:0.5em; height:0.5em; } comment { display:none; } </style>
If the cells are custom formatted, then show us an actual value shown in the Formula Bar and the value for it in the cell. Also showing us the custom format type pattern would be helpful. Also, you need to show us what number need to go between to fill the "gap" (choose numbers for your example that make the "gap" small so that the list of gap fillers is not too large).
 
Last edited:
Upvote 0
The numbers as they are in the formula bar are "333130900". I have also attached the screen shot of the formatting that is currently in use.
https://imgur.com/a/bNo38y1
Why is the font size on your posts so small... you messages are very hard to read because of it.

You did not answer my other question... what numbers are you expecting to fill the gap? Is the last two digits always 0? Is the gap calculated from the values in the 4-digit group? Do we have to pay attention to the first three digits when working out the gap?
 
Last edited:
Upvote 0
Hello,

I should have been more clear sorry about that got a bit frustrated yesterday. I am trying gaps for instance in 3-33-1309-0-0 thru 3-33-1332-0-0 are open. So I would like to find a gap in those numbers and then fill those number in that are missing. any other numbers we are not worried about at this time.
 
Upvote 0
Is it possible to use an IF statement for a defined set of numbers like what I would like to do?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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