Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default how to increment no on excel spreed sheet

f I have one excel spree sheet and I want to add line no on the first
columnA, from 1 to 100, how do I do that?
ColumnA ColumnB
1 abc
2 ddd
3 add
4 eee


thanks.

Lillian
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default how to increment no on excel spreed sheet

Two ways to do that

First method
Enter 1 in A1
Enter =A1+1 in A2
Copy A2 from A3 to A100

Another method
Enter =row() in A1
Copy A1 from A2 to A100

Alok Joshi

"Lillian" wrote:

f I have one excel spree sheet and I want to add line no on the first
columnA, from 1 to 100, how do I do that?
ColumnA ColumnB
1 abc
2 ddd
3 add
4 eee


thanks.

Lillian

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to increment no on excel spreed sheet

You could also use the "fill handle":

Enter a "1" in cell A1.
Move your mouse to the bottom right corner of the cell until it changes to a
wide-looking + symbol.
Hold down Ctrl and drag your mouse down for 99 more rows.
Let go. Numbers fill in column A from 1 to 100.
If you don't hold down Ctrl, it copies the identical number 100 times instead.
Holding or not holding Ctrl has the opposite fill effect if your column
contains dates instead of numbers (i.e. you hold down Ctrl to get the SAME
date several times, or don't hold it down to get the natural sequence of
dates in the calendar).

Pretty neat, isn't it?

--
--Draconian


"Alok" wrote:

Two ways to do that

First method
Enter 1 in A1
Enter =A1+1 in A2
Copy A2 from A3 to A100

Another method
Enter =row() in A1
Copy A1 from A2 to A100

Alok Joshi

"Lillian" wrote:

f I have one excel spree sheet and I want to add line no on the first
columnA, from 1 to 100, how do I do that?
ColumnA ColumnB
1 abc
2 ddd
3 add
4 eee


thanks.

Lillian

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default how to increment no on excel spreed sheet

Yes that is another way. Also I did not know about the opposite behavior of
the dates. Thanks.

"Draconian" wrote:

You could also use the "fill handle":

Enter a "1" in cell A1.
Move your mouse to the bottom right corner of the cell until it changes to a
wide-looking + symbol.
Hold down Ctrl and drag your mouse down for 99 more rows.
Let go. Numbers fill in column A from 1 to 100.
If you don't hold down Ctrl, it copies the identical number 100 times instead.
Holding or not holding Ctrl has the opposite fill effect if your column
contains dates instead of numbers (i.e. you hold down Ctrl to get the SAME
date several times, or don't hold it down to get the natural sequence of
dates in the calendar).

Pretty neat, isn't it?

--
--Draconian


"Alok" wrote:

Two ways to do that

First method
Enter 1 in A1
Enter =A1+1 in A2
Copy A2 from A3 to A100

Another method
Enter =row() in A1
Copy A1 from A2 to A100

Alok Joshi

"Lillian" wrote:

f I have one excel spree sheet and I want to add line no on the first
columnA, from 1 to 100, how do I do that?
ColumnA ColumnB
1 abc
2 ddd
3 add
4 eee


thanks.

Lillian

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 do I draw chemical structures in Excel spreed sheet? James Charts and Charting in Excel 1 March 31st 09 08:29 AM
save a excel spreed sheet to a word document? allend27 Excel Discussion (Misc queries) 2 July 29th 08 12:44 PM
Formating Excel Spreed Sheet xkaylax Excel Discussion (Misc queries) 1 January 31st 08 01:43 AM
How can I read over than 65,536 rows from excel spreed sheet Lillian Excel Discussion (Misc queries) 2 April 16th 06 01:47 AM
delete record using Macro in excel spreed sheet Lillian[_3_] Excel Programming 47 December 3rd 03 04:06 PM


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