A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

duplicate the each row twice in one worksheet



 
 
Thread Tools Display Modes
  #1  
Old December 7th, 2005, 09:37 PM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default duplicate the each row twice in one worksheet

I have 89 rows data (first name, last name) in one worksheet, for some
reason I need to repeat their name 3 times for some reasons.
Is there any easy way to do so wihtout running copy 3 times of 89 rows.
Any tip would be much appreciated.

Regards,
MH


  #2  
Old December 7th, 2005, 10:46 PM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default duplicate the each row twice in one worksheet

Select the whole lot, copy and then paste at the bottom of your data.
Repeat then sort on name.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"L.J." wrote in message
...
I have 89 rows data (first name, last name) in one worksheet, for some
reason I need to repeat their name 3 times for some reasons.
Is there any easy way to do so wihtout running copy 3 times of 89 rows.
Any tip would be much appreciated.

Regards,
MH




  #3  
Old December 8th, 2005, 01:21 AM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default duplicate the each row twice in one worksheet

Another play to try, which auto-triplicates lines
in exactly the same order as the source data ..

Assume source data is in Sheet1,
cols A and B, from row1 down

In a new Sheet2,

Put in A1: =OFFSET(Sheet1!$A$1,INT((ROWS($A$1:A1)-1)/3),)
Put in B1: =OFFSET(Sheet1!$B$1,INT((ROWS($A$1:A1)-1)/3),)

Select A1:B1,
fill down by 3 times as many rows as there is data in Sheet1
(e.g.: since you have 89 lines in Sheet1, fill down to B267)

Or, we could simply overfill to say, B300,
to dynamically cater for new data additions in Sheet1
(It'll appear as zeros once the existing data in Sheet1 is exhausted)

If required, kill the formulas in cols A & B with an in-place:
Copy Paste special check "Values" OK
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"L.J." wrote in message
...
I have 89 rows data (first name, last name) in one worksheet, for some
reason I need to repeat their name 3 times for some reasons.
Is there any easy way to do so wihtout running copy 3 times of 89 rows.
Any tip would be much appreciated.

Regards,
MH




  #4  
Old December 8th, 2005, 02:42 AM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default duplicate the each row twice in one worksheet

In a new Sheet2,
Put in A1: =OFFSET(Sheet1!$A$1,INT((ROWS($A$1:A1)-1)/3),)
Put in B1: =OFFSET(Sheet1!$B$1,INT((ROWS($A$1:A1)-1)/3),)


The above "starting cell" formulas can be placed in any 2 starting cells
(next to each other) in the new sheet, not necessarily in A1 & B1, and
filled down from there.

Adjust the number "3" within the part: .. INT((ROWS($A$1:A1)-1)/3)
to suit as required. Eg: If we want each line to repeat 4 times, change the
"3" to "4", then just fill down to cover at least 4 x the number of lines in
the source data. And so on.
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #5  
Old December 8th, 2005, 07:17 PM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default duplicate the each row twice in one worksheet

And if you wanted it all to stay in the same order, then simply add another
column to your data, fill down with 1,2,3,4,5 etc Copy all, paste under and
then repeat and then sort on the number column. You can then delete it if
you want.

Regards
Ken.....................


"Ken Wright" wrote in message
...
Select the whole lot, copy and then paste at the bottom of your data.
Repeat then sort on name.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"L.J." wrote in message
...
I have 89 rows data (first name, last name) in one worksheet, for some
reason I need to repeat their name 3 times for some reasons.
Is there any easy way to do so wihtout running copy 3 times of 89 rows.
Any tip would be much appreciated.

Regards,
MH






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to protect a worksheet from being copied to another worksheet SurvivorIT General Discussion 3 August 31st, 2005 01:53 PM
Search a worksheet, extract rows using a list from another sheet bobf General Discussion 9 August 31st, 2005 04:56 AM
HOW DUPLICATE TEXT ON ALL PAGES OF WORKSHEET FROM ONE CELL Samantha Stevenson Worksheet Functions 2 June 21st, 2005 10:40 PM
Macro to search for and display data in another worksheet Mark H Worksheet Functions 0 June 14th, 2005 12:40 PM
Links and NA [email protected] Links and Linking 0 October 23rd, 2004 12:38 PM


All times are GMT +1. The time now is 08:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.