Insert Missing Numbers In A Ascending Column
Aug 3, 2006
I am trying to insert the missing numbers/rows on a numerical acsending column. I have a spreadsheet that has a list of 8000 parts that I want to put into numerical acsending order, however numbers are missing. For Example:
Column A is a numerical part number and column B is the description for the part number in column A. My spreadsheet used to be in perfect numerical order however over the years some rows have been deleted which makes my spreadsheet look like the below example.
ColumnA ColumnB
1 -------Part A
2 -------Part B
3 -------Part C
5 -------Part E
6 -------Part F
As you can see part number 4 is missing is there a way to insert the missing part numbers into column A and keep column B in order associated with column A? My goal would have the result look like this below.
ColumnA ColumnB
1 -------Part A
2 -------Part B
3 -------Part C
4
5 -------Part E
6 -------Part F
I am looking for a quick solution for this as there are 8000 rows. I have tried the MATCH function and can't seem to get that to work.
View 4 Replies
ADVERTISEMENT
Oct 12, 2010
I have a list of numbers in sequential order. There are numbers missing. Is there a way to have Excel insert rows for the numbers that are missing in the series.
example:
1
2
3
4
8
9
becomes
1
2
3
4
8
9
View 7 Replies
View Related
Feb 19, 2008
The excel file has industrial information arranged by sector. The sectors are represented by six digit codes that are not strictly sequential. For example, a typical example of consecutive codes is 120011,120012,120030,120040,130011. There are upwards of three hundred sectors.
The data I am using is missing certain sectors - sometimes more than 30 at a time. I would like to find a quick way to identify the missing sectors and insert rows there, preferably with the first cell in the row being the missing sectoral code.
I have a similar problems with columns as well. But I can always just transpose the data and use whatever solution works for the rows.
View 9 Replies
View Related
Feb 14, 2003
I have three columns of values that are in no particular order that need to be sorted in ascending order in another column.
View 9 Replies
View Related
Jul 8, 2008
I have two columns which i want to compare, they contain text data such as A123.
what I'd like is if its in column A and not in Column B then add to bottom of column A.
Once its in column A i can do the vlookup's to draw the other data, costs etc, over but don't know how to identify, and add, the missing codes to the list.
View 9 Replies
View Related
Feb 7, 2012
In column A, I have numbers from 1000 to 8600.
I want to identify (in a separate worksheet is fine) what numbers are missing inside the ranges 2500-2599, 3100-3399 & 3700-3799.
View 2 Replies
View Related
Apr 24, 2009
i had a worksheet in which i had a column Named Cheque No. i want to print the missing cheque no's in a series of cheque no's.The logic here is that there will be different series of cheque nos for different transactions.Just check out my worksheet.
View 9 Replies
View Related
Feb 11, 2014
I was wondering if it is possible to copy a row without having the numbers ascend? I've attached an example spreadsheet and am trying to copy row 2, columns C - J to rows 3 - 16, but the numbers ascend when I do.
View 6 Replies
View Related
Nov 5, 2008
Im totally new to excel and have some data i need to sort. how to sort numbers into ascending order across a row. ie, I have 34 2 45 79 102 63 etc, and I need them to start low and order to high. i have over 1200 rows, so it would be good to do the whole sheet at the same time.
View 4 Replies
View Related
Jun 16, 2014
I have a button event coded to select and ultimately fill a range of cells with the intent of representing a timeline of payment periods.
Private Sub Timeline_Click()
Dim x As Integer, y As Integer, cell As Range
x = 1
[Code]....
The first row needs to be filled with numbers from 1 to the value of [D20]; E.g. if D20=10 then there would be 10 columns selected then filled 1 through 10.The second row needs to be similarly filled with ascending Y values; E.g. D13 = 4, D20=8: row 2{.5,1.0,1.5...}
View 2 Replies
View Related
Dec 24, 2008
Here I have some samples of data from row A1:V1 that I want to arrange in ascending order through A4:V4.
For that I’m using the formula below in cell A4 across V4
=SMALL($B$2:$W$2,COUNTA(B2:$W2)-(COUNTA(B2:$W2)-COLUMN(A2)))
Sample data
ABCDEFGHIJKLMNOPQRSTUV11230507801011121314150170192002523400000012357810111213141517192025
But I want to arrange them leaving zeros as shown below in A4:V4
ABCDEFGHIJKLMNOPQRSTUV11230507801011121314150170192002523412357810111213141517192025
View 9 Replies
View Related
Feb 5, 2012
I use excel 2007 and got this ques:
I got 2 columns (A and B) with random numbers and i want that in column C
I will get these numbers in ascending order with no duplicates
for instance:
a b
7 2
6 3
2 11
9 1
c
1
2
3
6
7
9
11
View 4 Replies
View Related
Apr 4, 2008
I have a huge spreadsheet with addresses in column A and number in column B. Each address needs to have a ceirtain amount of lines inserted below, depending upon the number in column B. for example:................
With the new space inserted. the numbers i have range from 34 -2. does anyone have any code that will insert the number of rows depending on the number in column B? i HAVE had a look through the forums, but there are so many topics!
View 5 Replies
View Related
Aug 4, 2009
I am looking for help. Sheet1 B1:1 has dates in each column in ascending order for one month. There are missing dates in between the days and they might look like this.
Example 1
7/1/20097/2/20097/6/20097/7/2009
Is there a code that will insert columns with the missing dates between the dates that already exist so that example 1 would become example 2?
Example 2
7/1/20097/2/20097/3/20097/4/20097/5/20097/6/20097/7/2009
View 6 Replies
View Related
Jun 18, 2008
can do the following thing:
Here's a simplified form of my data under the two columns B and C
B C
1 a
2 b
5 c
7 d
I want dummy rows to be inserted for the missing rows like:
B C
1 a
2 b
3 dummy
4 dummy
5 c
6 dummy
7 d
View 2 Replies
View Related
Jul 14, 2013
I have two columns of numbers (this week - Column A and last week - Column B). What I need to do is look at the numbers and pull two lists out in Columns C and D. In columns C a list of the numbers that are missing from last week in column D numbers that are missing that were added from the previous week. The two lists consist of about ten thousand rows of data.
******** language="JavaScript" ************************************************************************>
Microsoft Excel - Book3___Running: 14.0 : OS = (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp
(A)boutA1=ABCD1This WeekLast WeekMissingAdded
21002103110311002310271032103210274103310331034104051035103410361055610371036Â
165571038Â Â Â 81040Â Â Â 91055Â Â Â 101655Â Â Â Sheet1Â [HtmlMaker 2.42]
View 2 Replies
View Related
Dec 19, 2011
We recently bought some new software at work, and I'm having trouble formatting the exported data in a way that will work with existing reports. The attached file is what the data looks like after being exported. Basically, what I'm trying to do is insert rows for the missing numbers -- i.e., each name should be followed by rows numbered 1 through 10.
John Smith John Smith
1 1
4 2
8 3
4
5
6
7
8
9
10
My ultimate end goal is to have columns of data for each name, instead of rows:
John Smith 1 2 3 4 5 6 7 8 9 10
I've created a formula that can do that part, but it operates on the assumption that each name will be followed by a set number of rows.
What little I know about vba I've learned on my own, so I may just be missing something obvious.
View 4 Replies
View Related
Nov 27, 2007
I have a sequence(or a series is more proper) of dates(without the hours) for. exapmple: 10/22/2007,1025/2007,10/25/2007. What I need is to insert rows with the missing dates. I found a VBE code for a macro which does the work but now the problem is that in some rows the dates are the same and if I have two times 10/25/2007 it adds the row with the next date after the first one and all messes up.
Range("A2").Select
Do Until ActiveCell.Value = Empty
If ActiveCell.Value = ActiveCell.Offset(-1, 0).Value + 1 Then
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.EntireRow.Insert
ActiveCell.Value = ActiveCell.Offset(-1, 0).Value + 1
ActiveCell.Offset(1, 0).Select
End If
Loop
View 9 Replies
View Related
Dec 18, 2012
I am currently using MS Excel 2007. Is there a way in VBA to automatically insert missing columns based on a defined series or range of values?
For example, we have a report that displays columns of: Year 2004 to Year 2012 per column (9 columns in total).
Sometimes, it displays missing a year or years (thus; our report has less columns). For example, it only shows 2008 to 2012 (missing 2004 to 2007). At times, it misses some years in between. What we do is manually add those missing years by manually inserting columns then inputting the missing year as their column headers.
Is it posisble for VBA to check if the columns contain all of the defined Year range (for example, you've initially defined: Year 2004 to Year 2012)? Afterwards, all missing columns are automoatically inserted (in chronological order or based on your defined values or range).
View 6 Replies
View Related
Apr 25, 2014
I am processing an infinite set of data from a meteorological station here in Alaska which gives me half hourly data reading with a time stamp 00.00, 00.30, 01.00, 01.30, 02.00, 02.30 and so on.
I am using this formula to detect every time half hour reading is skipped (=IF(TEXT(MOD(B1936-B1934,1),"[M]")="30","","missing")) and it works pretty well.
Still I have to check and manually insert extra missing for every half hour missing but that's bearable.
This formula inserts a "missing" every time it finds a gap.
My question is: How can I insert a row above every cell with "missing"?
How do I do that? Here is also my excel sheet.
CR1000_Meteo_20131113_2_CLEANED.xls
View 3 Replies
View Related
Jan 16, 2014
How to create a column that has ascending values ie: increment of 1 eg. 1,2,3,4,5,6 ......
View 2 Replies
View Related
Apr 22, 2012
Creating a sequence in every column? It should look like this:
Original matrix (Top left cell is "A1"):
40 50 60
30 10 20
70 20 0
And I want to replace it with:
2 3 3
1 1 2
3 2 1
I need to create an ascending sequence of numbers in every column. First column contains: 40, 30, 70. That's why its ascending sequence is: 2, 1, 3.
Btw, I got N rows and M columns.
View 8 Replies
View Related
Sep 17, 2009
I have tried many different ways of coming up with a solution of this problem without writing a VBA program, however, Excel's date and time formatting scheme seem to be tripping me up. As a result, I am trying to figure out what direction to go.
I have seached the board up and down looking for a solution and I have found one problem that is midly similar but I do not fully understand the code. I have tried to modify it but to no avail.
Here is my problem:
I have 9 columns of data that are reported in 15 minute intervals for a little over 3 years. There are missing data in the data set and it would be infeasable for me to manually find and replace the missing data. (Over 110000 rows of data)
Example of data (Where "/" delienates column seperation):
Date / Temp 2m / Temp 10 m / Radiation / RH / WindAve / WindMax / WindMin / Rain
6-1-06 12:15 am / 45 / 35 / .0001 / 95 / 5 / 7 / 3 / 0
6-1-06 12:30 am / 45 / 35 / .0001 / 95 / 5 / 7 / 3 / 0
6-1-06 12:45 am / 45 / 35 / .0001/ 95 / 5 / 7 / 3 / 0
6-2-06 6:00 pm / 45 / 35 / .0001 / 95 / 5 / 7 / 3 / 0
6-2-06 6:15 pm / 45 / 35 / .0001 / 95 / 5 / 7 / 3 / 0
So what I need to do is this:
1) Find which data times are missing
2) Add the appropriate amount of rows in between where the missing data would be
3) Add the correct dates to the new rows
4) Add "N/A" to the columns that have no data
You can see that my date and time are formatted in mm/dd/yy hh:mm
I found this on the website and was trying to modify it to my needs:
Sub InsRow()
Dim c
View 9 Replies
View Related
Sep 1, 2009
I am trying to sort a column of data in ascending order but I am not getting the results I expect. An example of the data held in the cells is:
4972-1A
4972-10A
4972-2A
4972-1B
4972-3C
When I sort it in ascending order it sorts like:
4972-10A
4972-1A
4972-1B
4972-2A
4972-3C......................
View 4 Replies
View Related
Jan 9, 2014
Is there a formula that will allow you to add an ascending suffix to duplicate data in a column?
For example:
1234
1234
1234
1234
1234[code].....
I've been trying to figure it out on my own for a while now with no luck...
View 7 Replies
View Related
May 26, 2008
this is exactly what i am looking for also, can you please explain how i can use that code in 2007? I have attached a list of the numbers i'm working with, please can you have a look for me?
I've tried entering it ion visual basic but i keep getting:
COMPILE ERROR
INVALID OUTSIDE PROCEDURE
View 9 Replies
View Related
Nov 24, 2013
I have a 5x5 table which is filled by random numbers ranging from 1 to 99. I need to make a function that shows me all the numbers that are missing between 1-99.
View 1 Replies
View Related
Apr 17, 2008
I have a file with approx 3600 rows. In Col B there is a 13 digit EAN-13 code. I would like to find out which numbers are missing. I have to compare each cell from top to bottom in the B-column to the cell below and find out if there are some missing numbers. If the numbers are incremental then goto next cell. But if there's a gap in the numbers then it should insert the missing numbers with an increment of 1.
I think the logic statement should look like this:
i = 1
For x = 1 to last row
If the gap between B(i) and B(i+1) < 1 then
Insert a row and put the missing value in the cell on the new row.
Endif
i = i+1
Next x
The comparison has to be made from the 5 digits in place 8-12 in the code.
Here's an example (i've dimmed the digits that shouldn't be compared):
7330985920714
7330985920721
7330985920738
7330985920776
As you see there's a missing number between the third and fourth row. Here the value should be 733098592074 + the checksum that is a bit tricky to calculate.
Between the fifth and sixth row there are four missing numbers that has to be filled in.
The checksum is OK to leave out at this moment. The important thing is to get the 5 digits.
View 9 Replies
View Related
Jun 18, 2007
Excel 2003. As I entered 720 names/addresses in a spread sheet, I stopped and started repeatedly. When done, the row numbers go from 1 to 728. Puzzled, I carefully reviewed all names and the row numbers assigned. Row numbering skips eight numbers, 432-439. How do I get Excel to reassign the row numbers so they reflect accurately the number of entries?
View 2 Replies
View Related
Dec 17, 2009
Is there formula that I can use that would have Excel count the numbers in a colum and return the numbers that are missing, 1,2,3,5,6,7,9,10 and excel returns 4,8?
View 2 Replies
View Related