Hello there, I am wondering whether there is a way to ask Excel to check all the data and identify where there are gaps between numbers and if there are, insert the correct number of cells in between and add their values.
The sheet has data in cells A:L. The data to sort is in A and B. Everything else in the other columns is text. A contains a three digit code, B contains numbers ranging that are five digits long (some with leading zeros). At the moment I am working through it manually to locate missing numbers in a sequence and then insert the correct number of rows and the corresponding numbers in B.
If the number is 16001 in B, it will be 016 in A. This is important in terms of filling in the gaps in columns A and B.
So, as an example
I located a missing row. The action to take is insert a new row, add 017 to column A and 17032 to column B.
It's a little bit more complicated because there are intentional gaps between some numbers.
For example
In these instances, it would need to check column A first to make sure it doesn't fill in the gaps from 24062 to 25001.
Does anyone have any ideas?
Thanks.
The sheet has data in cells A:L. The data to sort is in A and B. Everything else in the other columns is text. A contains a three digit code, B contains numbers ranging that are five digits long (some with leading zeros). At the moment I am working through it manually to locate missing numbers in a sequence and then insert the correct number of rows and the corresponding numbers in B.
If the number is 16001 in B, it will be 016 in A. This is important in terms of filling in the gaps in columns A and B.
So, as an example
017 | 17031 |
017 | 17033 |
I located a missing row. The action to take is insert a new row, add 017 to column A and 17032 to column B.
It's a little bit more complicated because there are intentional gaps between some numbers.
For example
024 | 24062 |
025 | 25001 |
In these instances, it would need to check column A first to make sure it doesn't fill in the gaps from 24062 to 25001.
Does anyone have any ideas?
Thanks.