Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002 : How to quick copy similar cell content ?


-- Dear Sir,

I have the following worksheet :

A B C D
Ref Date Item Code Amount
1 DJ125 2.1.06 AX123 22.84
2 AX134 36.21
3 AP155 12.54
4 TX 122 6.54
5 DJ126 3.1.06 HH122 3.21
6 UY322 8.54
7 UN447 14.20
8 DJ127 4.1.06 HH449 3.21
9 KL996 2.65
10 DJ128 5.1.06 WE211 14.69
11 YY633 7.41
12 DJ129 6.1.06 ZZ441 22.50
....

1200 D250 6.5.06 CC250 38.21


Refernce DJ125 in column A is for cell A1..A4 and DJ126 is for cell A5..A7
and so on.

May I know what formula must i input at cell A2 and copy down to get the
reference in column A fill up quickly witout having to copy the reference one
by one ?


Thanks

Low


A36B58K641
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Excel 2002 : How to quick copy similar cell content ?

Try this, you will have to put it into VBA and run it but it should work.
Ask if you don't know how to do this

Sub main()
Dim lastCell As Long
Dim myRow As Long

lastCell = Cells(Rows.Count, "A").End(xlUp).Row

For i = 2 To lastCell
myRow = i - 1
If Cells(i, 2) = "" Then Cells(i, 2) = Cells(myRow, 2)
Next

End Sub


--
--
-John
Please rate when your question is answered to help us and others know what
is helpful.

"Mr. Low" wrote in message
...

-- Dear Sir,

I have the following worksheet :

A B C D
Ref Date Item Code Amount
1 DJ125 2.1.06 AX123 22.84
2 AX134 36.21
3 AP155 12.54
4 TX 122 6.54
5 DJ126 3.1.06 HH122 3.21
6 UY322 8.54
7 UN447 14.20
8 DJ127 4.1.06 HH449 3.21
9 KL996 2.65
10 DJ128 5.1.06 WE211 14.69
11 YY633 7.41
12 DJ129 6.1.06 ZZ441 22.50
...

1200 D250 6.5.06 CC250 38.21


Refernce DJ125 in column A is for cell A1..A4 and DJ126 is for cell A5..A7
and so on.

May I know what formula must i input at cell A2 and copy down to get the
reference in column A fill up quickly witout having to copy the reference
one
by one ?


Thanks

Low


A36B58K641



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel 2002 : How to quick copy similar cell content ?

Debra Dalgleish shares some techniques:
http://contextures.com/xlDataEntry02.html


Mr. Low wrote:

-- Dear Sir,

I have the following worksheet :

A B C D
Ref Date Item Code Amount
1 DJ125 2.1.06 AX123 22.84
2 AX134 36.21
3 AP155 12.54
4 TX 122 6.54
5 DJ126 3.1.06 HH122 3.21
6 UY322 8.54
7 UN447 14.20
8 DJ127 4.1.06 HH449 3.21
9 KL996 2.65
10 DJ128 5.1.06 WE211 14.69
11 YY633 7.41
12 DJ129 6.1.06 ZZ441 22.50
...

1200 D250 6.5.06 CC250 38.21

Refernce DJ125 in column A is for cell A1..A4 and DJ126 is for cell A5..A7
and so on.

May I know what formula must i input at cell A2 and copy down to get the
reference in column A fill up quickly witout having to copy the reference one
by one ?

Thanks

Low

A36B58K641


--

Dave Peterson
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
Excel - copy absolute cell references (within the range) as relati Merf1013 Excel Discussion (Misc queries) 1 October 10th 06 07:46 AM
copy excel cell to cell in word table using excel macro jthurnwps Excel Discussion (Misc queries) 0 July 21st 06 07:11 PM
How do I flag a cell in Excel 2002 when the date entered has pass sas1950 Excel Discussion (Misc queries) 1 February 15th 06 04:52 PM
Can I copy a table from Word into one cell in Excel without losing data? (Office 97) [email protected] Excel Discussion (Misc queries) 2 November 29th 05 07:22 PM
How can I copy Word data into a merged cell in Excel? Suzan Wild Excel Discussion (Misc queries) 1 June 1st 05 10:04 PM


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