#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default missing rows

hi,
my worksheet should have 1000 rows, numbered from 1 to 1000.
I only have 915 of these rows.
Could someone tell me if it is possible to determine wich of them are
missing (the missing rows are not consecutive) and eventually if Excel can
automatically insert this rows - unpopulated of course ( I work in Excel 2003
Professional)
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default missing rows

Here is a quick way to find them:
Let's assume the numbers are in A1:A915
Select A2:A915 (not A1); use Format Conditional Formatting; specify
Formula Is A2<A1+1 and set the font or background (pattern) to red
A red cell indicates something is missing above it.

Unless you are ready to work with VBA you will need to insert the rows
manually by right clicking the row header (the number on far left of window)
and using Insert. Then type in missing number (no use Edit | Fill when you
have inserted all the missing rows)

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Rodica" wrote in message
...
hi,
my worksheet should have 1000 rows, numbered from 1 to 1000.
I only have 915 of these rows.
Could someone tell me if it is possible to determine wich of them are
missing (the missing rows are not consecutive) and eventually if Excel can
automatically insert this rows - unpopulated of course ( I work in Excel
2003
Professional)
Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default missing rows

try this

Sub insertmissing()

'assume numbers are in column A
RowCount = 1
Do While Cells(RowCount, "A") < "" And _
Cells(RowCount + 1, "A") < ""

If (Cells(RowCount, "A") + 1) < Cells(RowCount + 1, "A") Then

Cells(RowCount + 1, "A").EntireRow.Insert Shift:=xlDown
Cells(RowCount + 1, "A") = Cells(RowCount, "A") + 1

End If

RowCount = RowCount + 1

Loop

End Sub


"Rodica" wrote:

hi,
my worksheet should have 1000 rows, numbered from 1 to 1000.
I only have 915 of these rows.
Could someone tell me if it is possible to determine wich of them are
missing (the missing rows are not consecutive) and eventually if Excel can
automatically insert this rows - unpopulated of course ( I work in Excel 2003
Professional)
Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default missing rows



"Bernard Liengme" wrote:

Here is a quick way to find them:
Let's assume the numbers are in A1:A915
Select A2:A915 (not A1); use Format Conditional Formatting; specify
Formula Is A2<A1+1 and set the font or background (pattern) to red
A red cell indicates something is missing above it.

Unless you are ready to work with VBA you will need to insert the rows
manually by right clicking the row header (the number on far left of window)
and using Insert. Then type in missing number (no use Edit | Fill when you
have inserted all the missing rows)

best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Rodica" wrote in message
...
hi,
my worksheet should have 1000 rows, numbered from 1 to 1000.
I only have 915 of these rows.
Could someone tell me if it is possible to determine wich of them are
missing (the missing rows are not consecutive) and eventually if Excel can
automatically insert this rows - unpopulated of course ( I work in Excel
2003
Professional)
Thanks!


the result is that all rows from A2 to the end turned up to red

I forgot to specify that i am a simply Excel user and not an expert so it`s
possibile to do something wrong with this formula. Anyway, thanks Bernard

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing 3 rows Lisa Excel Discussion (Misc queries) 2 June 13th 06 04:48 PM
Missing Rows? Elizabeth Excel Discussion (Misc queries) 1 June 5th 06 05:10 PM
Missing rows ? bob Excel Worksheet Functions 3 April 9th 06 01:27 PM
Add missing rows [email protected] Excel Worksheet Functions 0 December 7th 05 10:49 PM
Missing rows! soph Excel Discussion (Misc queries) 3 September 30th 05 11:09 PM


All times are GMT +1. The time now is 09:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"