Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Jen Jen is offline
external usenet poster
 
Posts: 119
Default Automatically Increment Row Numbers

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

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 860
Default Automatically Increment Row Numbers

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


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,501
Default Automatically Increment Row Numbers

Number your rows using:-

=ROW(A1)

And drag down - problem solved.

Mike



"Jen" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Jen Jen is offline
external usenet poster
 
Posts: 119
Default Automatically Increment Row Numbers

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!
  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,886
Default Automatically Increment Row Numbers

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)

--
Regards

Roger Govier


"MartinW" wrote in message
...
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





  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 860
Default Automatically Increment Row Numbers

You're welcome Jen, glad we could help.

Martin


  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 860
Default Automatically Increment Row Numbers

Touché!! Too easy!! <bg


  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default but...

what if instead of just having a '1' in the cell you had, say, "S001". when that runs down the column it looks like:

S001
S002
S003
S004
etc.

when i delete S002 i would like S003 to become S002. does that make sense? how would i do that?!

thanks in advance!!
  #9   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,934
Default but...

Assuming Column A starting in Row 1 - put S001 in A1, then put this formula
in A2 and copy it down...

="S"&TEXT(RIGHT(LOOKUP(2,1/(A$1:A1<""),A$1:A1),3)+1,"000")

--
Rick (MVP - Excel)


"Bill Smith" wrote in message ...
what if instead of just having a '1' in the cell you had, say, "S001".
when that runs down the column it looks like:

S001
S002
S003
S004
etc.

when i delete S002 i would like S003 to become S002. does that make
sense? how would i do that?!

thanks in advance!!


  #10   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 100
Default but...

Hi,

Another way, if you mean delete the row containing S002 instead of just the
contents of the cell, is to enter
=ROW() in A1, apply a custom number format of "S"000 and copy down.
Adjust the formula to read =ROW()-9 for instance, if you want the series to
start on row 10.

Dave

url:http://www.ureader.com/msg/10356846.aspx
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
Automatically increment numbers in a cell when you open workbook mrcall Excel Discussion (Misc queries) 2 March 3rd 07 10:26 PM
automatically increment y-axis daily Peter Dacre Charts and Charting in Excel 1 October 2nd 06 02:31 PM
Form Numbers Automatically Increment by 1 Upon Opening GVDLS New Users to Excel 2 May 2nd 06 09:22 PM
automatically increment field by one Dingbat Excel Discussion (Misc queries) 2 October 25th 05 08:18 PM
increment cell value automatically Gummy Excel Worksheet Functions 0 November 5th 04 10:30 PM


All times are GMT +1. The time now is 04:11 AM.

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

About Us

"It's about Microsoft Excel"