Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I auto-number rows in excel?

I am trying to create an invoice log where I need to number the cells. I have
been told that excel is capable of numbering the log itself. I would be very
grateful if somebody could inform me how.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default How do I auto-number rows in excel?

Hi

You can use the ROW() function to put a number against each line (row 1 will
get 1, row 2 will get 2 etc) .. and if you move lines around or insert lines
each line will automatically renumber. However, if you do insert lines, the
new line will be blank so you will have to either copy the line above or put
=ROW() in the cell that you want to use to number the rows.

Is this what you're after, or do your invoices have specific numbers and if
you insert rows do you really want you invoice numbers to change. If you'ld
like to provide more details maybe we can come up with a better solution.

Cheers
JulieD

"Edstar1979" wrote in message
...
I am trying to create an invoice log where I need to number the cells. I
have
been told that excel is capable of numbering the log itself. I would be
very
grateful if somebody could inform me how.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How do I auto-number rows in excel?

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


Edstar1979 wrote:
I am trying to create an invoice log where I need to number the
cells. I have been told that excel is capable of numbering the log
itself. I would be very grateful if somebody could inform me how.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default How do I auto-number rows in excel?

Hi Frank

just wondering what the benefit of this formula over
=ROW()
or even
=IF(B2<"",ROW(),"")

is ...
Cheers
JulieD

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


Edstar1979 wrote:
I am trying to create an invoice log where I need to number the
cells. I have been told that excel is capable of numbering the log
itself. I would be very grateful if somebody could inform me how.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default How do I auto-number rows in excel?

Hi Julie
one main benefit: It also deals with some blank rows in between and is
also robust regarding deleting rows in between. So if you always fill
your list from the top and have no blanks in between no benefit but the
drawback of a volatile function (OFFSET)

--
Regards
Frank Kabel
Frankfurt, Germany


JulieD wrote:
Hi Frank

just wondering what the benefit of this formula over
=ROW()
or even
=IF(B2<"",ROW(),"")

is ...
Cheers
JulieD

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


Edstar1979 wrote:
I am trying to create an invoice log where I need to number the
cells. I have been told that excel is capable of numbering the log
itself. I would be very grateful if somebody could inform me how.




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
How can I auto number rows only when data is entered in the same r Plateav Excel Discussion (Misc queries) 3 September 17th 09 11:24 PM
How do you auto-number a large list of rows in Excel? Birdieguy Excel Discussion (Misc queries) 23 May 25th 09 10:56 PM
Auto Number the Rows of Auto Filter Result ashish128 Excel Discussion (Misc queries) 3 April 29th 07 06:41 PM
auto number rows when printing Eduman Excel Discussion (Misc queries) 4 September 11th 06 08:14 PM
Auto selecting the number of rows! aiyer[_33_] Excel Programming 1 August 6th 04 10:58 PM


All times are GMT +1. The time now is 06:30 PM.

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"