#1   Report Post  
schaduw - ExcelForums.com
 
Posts: n/a
Default 1-100

Is it possible to have row A numbered from 1 to 100, and if one of the
numbers is removed the count will automatically change?

i.e.
1
2
3
4
etc.

Now 2 gets deleted, how can i get excel to change 3 to 2 and so on for
the rest of the numbers.

hope this makes sense at all :?
---------
www.coffeecozy.com

Use your Bodum and give up cold coffee for good!
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
in A1 enter
=IF(B1<"",1,"")

in A2 enter
=IF(B2<"",MAX($A$1:OFFSET(A2,-1,0))+1,"")
and copy this formula down for as many rows as required. Now everytime
someone enters data in column B column A shows a ID value

--
Regards
Frank Kabel
Frankfurt, Germany

"schaduw - ExcelForums.com"
schrieb im Newsbeitrag ...
Is it possible to have row A numbered from 1 to 100, and if one of

the
numbers is removed the count will automatically change?

i.e.
1
2
3
4
etc.

Now 2 gets deleted, how can i get excel to change 3 to 2 and so on

for
the rest of the numbers.

hope this makes sense at all :?
---------
www.coffeecozy.com

Use your Bodum and give up cold coffee for good!


  #3   Report Post  
Trevor Shuttleworth
 
Posts: n/a
Default

=ROW() in cell A1 and copy down

Regards

Trevor


"schaduw - ExcelForums.com" wrote
in message ...
Is it possible to have row A numbered from 1 to 100, and if one of the
numbers is removed the count will automatically change?

i.e.
1
2
3
4
etc.

Now 2 gets deleted, how can i get excel to change 3 to 2 and so on for
the rest of the numbers.

hope this makes sense at all :?
---------
www.coffeecozy.com

Use your Bodum and give up cold coffee for good!



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



All times are GMT +1. The time now is 03:35 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"