Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default Add column to file with numbers

Hi,

I am manipulating data from one db to another and have found that I need
to have the ID numbers 1 to 6000 in the left side 1st column.

How do I get these numbers in without having to do them 1 x 1.

Thanks

Excel 2002.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,441
Default Add column to file with numbers

Rock,

1) Insert a new column A, then in cell A1, enter

=ROW()

Copy cell A1, press Ctrl-End, then Home, then Shift-Ctrl-Home, then Enter.

Select column A, then paste special Values, and you're done.

2) If column A is entirely filled (no blanks), then you could insert a new column A, type 1 in A1,
2 in A2, select both A1 and A2, then double-click the fill handle.

3) You could also use a macro

HTH,
Bernie
MS Excel MVP


"rock" wrote in message ...
Hi,

I am manipulating data from one db to another and have found that I need to have the ID numbers 1
to 6000 in the left side 1st column.

How do I get these numbers in without having to do them 1 x 1.

Thanks

Excel 2002.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default Add column to file with numbers

Many thanks Bernie,

Did the 1st suggestion and it was fine.

I now need to take the column row down 1 cell so it matches the rest of
the data.

eg

A B C D E F

1 User_ID Forename Surname Addr1 Addr 2 Addr3
2 1 admin admin
3 2 John Lee PO Box 3362


I need to place the 1 in A column where the 1 is now in Col B

I tried to insert a row at the top of A so it I could type the title
then delete col B, but it didn't work as I needed it.


Also..

I need to change the date format..

First 2 rows are as I need, the rest is how 6000 are in col 0

20090820
20090820
60223
60324
60329
60416
60418
60426
60428
60503
60506
60506

Many thanks,



rock




Bernie Deitrick wrote:
Rock,

1) Insert a new column A, then in cell A1, enter

=ROW()

Copy cell A1, press Ctrl-End, then Home, then Shift-Ctrl-Home, then Enter.

Select column A, then paste special Values, and you're done.

2) If column A is entirely filled (no blanks), then you could insert a new column A, type 1 in A1,
2 in A2, select both A1 and A2, then double-click the fill handle.

3) You could also use a macro

HTH,
Bernie
MS Excel MVP


"rock" wrote in message ...
Hi,

I am manipulating data from one db to another and have found that I need to have the ID numbers 1
to 6000 in the left side 1st column.

How do I get these numbers in without having to do them 1 x 1.

Thanks

Excel 2002.



  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default Add column to file with numbers

I have found the way to add the 200 before the numbers okay, but still
need to be able to move a column of numbers down 1 cell.

Thanks

rock


rock wrote:
Many thanks Bernie,

Did the 1st suggestion and it was fine.

I now need to take the column row down 1 cell so it matches the rest of
the data.

eg

A B C D E F

1 User_ID Forename Surname Addr1 Addr 2 Addr3
2 1 admin admin
3 2 John Lee PO Box 3362


I need to place the 1 in A column where the 1 is now in Col B

I tried to insert a row at the top of A so it I could type the title
then delete col B, but it didn't work as I needed it.


Also..

I need to change the date format..

First 2 rows are as I need, the rest is how 6000 are in col 0

20090820
20090820
60223
60324
60329
60416
60418
60426
60428
60503
60506
60506

Many thanks,



rock




Bernie Deitrick wrote:
Rock,

1) Insert a new column A, then in cell A1, enter

=ROW()

Copy cell A1, press Ctrl-End, then Home, then Shift-Ctrl-Home, then
Enter.

Select column A, then paste special Values, and you're done.

2) If column A is entirely filled (no blanks), then you could insert
a new column A, type 1 in A1, 2 in A2, select both A1 and A2, then
double-click the fill handle.

3) You could also use a macro

HTH,
Bernie
MS Excel MVP


"rock" wrote in message
...
Hi,

I am manipulating data from one db to another and have found that I
need to have the ID numbers 1 to 6000 in the left side 1st column.

How do I get these numbers in without having to do them 1 x 1.

Thanks

Excel 2002.



  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 12
Default Add column to file with numbers

Did it this way..

Deleted the top A row and put the other cols up 1 cell so they were all
equal.

The added a row and pasted the titles in the top row.

Maybe not the best way, but it worked.

rock

rock wrote:
I have found the way to add the 200 before the numbers okay, but still
need to be able to move a column of numbers down 1 cell.

Thanks

rock


rock wrote:
Many thanks Bernie,

Did the 1st suggestion and it was fine.

I now need to take the column row down 1 cell so it matches the rest
of the data.

eg

A B C D E F

1 User_ID Forename Surname Addr1 Addr 2 Addr3
2 1 admin admin 3 2 John Lee PO Box
3362

I need to place the 1 in A column where the 1 is now in Col B

I tried to insert a row at the top of A so it I could type the title
then delete col B, but it didn't work as I needed it.


Also..

I need to change the date format..

First 2 rows are as I need, the rest is how 6000 are in col 0

20090820
20090820
60223
60324
60329
60416
60418
60426
60428
60503
60506
60506

Many thanks,



rock




Bernie Deitrick wrote:
Rock,

1) Insert a new column A, then in cell A1, enter

=ROW()

Copy cell A1, press Ctrl-End, then Home, then Shift-Ctrl-Home, then
Enter.

Select column A, then paste special Values, and you're done.

2) If column A is entirely filled (no blanks), then you could insert
a new column A, type 1 in A1, 2 in A2, select both A1 and A2, then
double-click the fill handle.

3) You could also use a macro

HTH,
Bernie
MS Excel MVP


"rock" wrote in message
...
Hi,

I am manipulating data from one db to another and have found that I
need to have the ID numbers 1 to 6000 in the left side 1st column.

How do I get these numbers in without having to do them 1 x 1.

Thanks

Excel 2002.


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
Adding Counter to column for number of identical file numbers Sam Excel Discussion (Misc queries) 1 September 16th 08 06:48 PM
Excel, change column of negative numbers to positive numbers? Nita New Users to Excel 3 November 27th 07 04:54 AM
How do I retain leading zeros in a column of numbers when file op vontzy Excel Discussion (Misc queries) 6 January 10th 07 10:13 AM
Changing column of numbers made of formulas to just numbers CJ Excel Discussion (Misc queries) 2 June 14th 06 02:13 PM
Excel Formula - Add column of numbers but ignore negative numbers view for Distribution List members Excel Worksheet Functions 1 April 7th 06 03:13 AM


All times are GMT +1. The time now is 09:39 AM.

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"