Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Automatically Increment Row Numbers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jen - 25 Apr 2007 11:52 GMT
I have a spreadsheet with a list of names on a waiting list, and I have each
row numbered incrementally using the formula =A1+1 etc.  However, when I
delete a row (when someone 'drops out' of the waiting list) the row numbers
below come up with an error (#REF!).

I have also tried to number the rows using Excel's automatic list, but when
I remove a row the row number also disappears (ie row number 9 follows
straight after 7, rather than changing to 8).

What I would like the spreadsheet to do is this:

I have a list:

1 John Smith
2 Joe Blogss
3 Katie Merryfield
4 Ian Jones
5 Carl Huges
6 Doris Brown
and so on...

When Ian Jones says he wants to be removed from the waiting list, I need to
delete his row so that the sheet now says:

1 John Smith
2 Joe Blogss
3 Katie Merryfield
4 Carl Huges
5 Doris Brown

Please could anyone tell me how to do this?  Any help is much appreciated.  
I have been scanning this and other sites, and my Excel Formula 'bible', but
can't find out how to do this seemingly simple thing!

Many thanks
MartinW - 25 Apr 2007 12:21 GMT
Hi Jen,

Instead of using  =A1+1, use  =ROW(A1) and drag down.
If you need to start your series in say, row 5, then it would be
=ROW(A5)-4.

HTH
Martin
Roger Govier - 25 Apr 2007 13:01 GMT
Hi

Or you could just enter
=ROW(A1)
in cell A5 or anywhere on the sheet.
The number 1 will start from the cell containing ROW(A1)

Signature

Regards

Roger Govier

> Hi Jen,
>
[quoted text clipped - 4 lines]
> HTH
> Martin
MartinW - 25 Apr 2007 13:32 GMT
Touché!! Too easy!!  <bg>
Mike H - 25 Apr 2007 12:24 GMT
Number your rows using:-

=ROW(A1)

And drag down - problem solved.

Mike

> I have a spreadsheet with a list of names on a waiting list, and I have each
> row numbered incrementally using the formula =A1+1 etc.  However, when I
[quoted text clipped - 31 lines]
>
> Many thanks
Jen - 25 Apr 2007 12:34 GMT
Thank you both so much for your help!  I can't believe it is actually so
simple, and yet I couldn't find the answer anywhere (spent hours fiddling
about with VB codes and stuff to make it work, and thinking 'it's got to be
easier than this'!)

Thanks again!
MartinW - 25 Apr 2007 13:02 GMT
You're welcome Jen, glad we could help.

Martin

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.