Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You need to define 'out of sequence' a little better so we know what we are
looking for. The approach I would take is to make a copy of the spreadsheet first, and work with the copy. Then add a two new columns. In the first column, add in row numbers, so you know the original sort order. Many easy ways to do this, but if you use formulas, make sure to copy/paste special/values for the column before you continue. Then sort the spreadsheet by the sequence column. If any of the row numbers are out of order, you know the sequences were out of order. To test for this, in the second column you added, add the following formula (this assumes the new columns you added were columns A and B, and this is the formula in cell B1): =IF(A1=A2-1,"","Sequence Change") The last cell in the column will show "Sequence Change" just because there isn't a cell below it. Once that is done, you can look at all the records with the same size sequence numbers, and do a similar check. You can add a column to pull the LEN(C1) if column C is the one that now has the sequence number. Then sort the entire range by this new column first and the sequence number second. Change the formula in column B to the following. This new formula will ignore the records where sequencing starts over at a 'inner' level, e.g. S010103 to S010201 =IF(Right(C1,1) = "1","",IF(A1=A2-1,"","Sequence Change")) Hope that helps! -- Daryl S "Helen" wrote: Easy exception reporting of sequential numbering. I had a lengthy complex sequentially numbered worksheet by row. Lots of things have now been added or taken away & I want a quick formulae to spot errors in the numbering so I can amend them. The reason I can't just copy & paste from row 1 to the end is that there are 3 levels - it goes something like this(with many more rows at each level!!): S01 level 1 allocation S0101 level 2 sub allocation S010101 level 3 sub allocation S010102 as above S010103 as above S0102 level 2 sub allocation S02 level 1 allocation Does this make sense? Does anyone have a solution please? I have about 50 worksheets of long coding to check! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sequential Numbering | Excel Discussion (Misc queries) | |||
Sequential numbering by 6 | Excel Discussion (Misc queries) | |||
sequential numbering | Excel Discussion (Misc queries) | |||
PO with sequential numbering with start / end numbering | Excel Discussion (Misc queries) | |||
Sequential numbering | Excel Discussion (Misc queries) |