Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Copying a column list from one sheet to another and repeating???

Hi

Does anyone know how to copy a list of text in a column from one sheet and
display it in another sheet but then continue to repeat the original list?

I am trying to get the content from these cells to be displayed in a row of
cells but
the crucial thing is that I need the cells to repeat the list from the
beginning once a blank cell is reached in the original column. I'll try an
example to make this clearer...

1. There is Sheet A with column A1:A20 containing the names of 20 products.
2. There is Sheet B with row A1:AN1 containing 40 cells

In this example Sheet B should copy all the 20 product names then get to
cell 21 and find a blank cell at 'Sheet1:A21' so start the list from the
beginning again. This should occur no matter how many cells are calling the
original list of 20 products but as soon as it finds a blank cell at the end
of the list of 20 products it should go back to the beginning and start
displaying from cell 1. Please note that there should be no limit on the
number of cells in the original product list and the cells displaying the
copied list should be able to be displayed in any row on sheet 2.

Hopefully I've made it easier to understand and not harder. Any ideas would
be much appreciated.

Thanks
Simon

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Copying a column list from one sheet to another and repeating???

=OFFSET(Sheet1!$A$1,IF((MOD(COLUMN(),$A$1)=0),(COU NTA(Sheet1!$A:$A)-1),((MOD(COLUMN(),$A$1))-1)),0)

"simon" wrote:

Hi

Does anyone know how to copy a list of text in a column from one sheet and
display it in another sheet but then continue to repeat the original list?

I am trying to get the content from these cells to be displayed in a row of
cells but
the crucial thing is that I need the cells to repeat the list from the
beginning once a blank cell is reached in the original column. I'll try an
example to make this clearer...

1. There is Sheet A with column A1:A20 containing the names of 20 products.
2. There is Sheet B with row A1:AN1 containing 40 cells

In this example Sheet B should copy all the 20 product names then get to
cell 21 and find a blank cell at 'Sheet1:A21' so start the list from the
beginning again. This should occur no matter how many cells are calling the
original list of 20 products but as soon as it finds a blank cell at the end
of the list of 20 products it should go back to the beginning and start
displaying from cell 1. Please note that there should be no limit on the
number of cells in the original product list and the cells displaying the
copied list should be able to be displayed in any row on sheet 2.

Hopefully I've made it easier to understand and not harder. Any ideas would
be much appreciated.

Thanks
Simon

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Copying a column list from one sheet to another and repeating?

=OFFSET(Sheet1!$A$1,((MOD(COLUMN(),(COUNTA(Sheet1! $A:$A)))=0)*6)+(MOD(COLUMN(),(COUNTA(Sheet1!$A:$A) )))-1,0)

Better... eliminates the IF

"klswvu" wrote:

=OFFSET(Sheet1!$A$1,IF((MOD(COLUMN(),$A$1)=0),(COU NTA(Sheet1!$A:$A)-1),((MOD(COLUMN(),$A$1))-1)),0)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Copying a column list from one sheet to another and repeating?

=OFFSET(Sheet1!$A$1,((MOD(COLUMN(),(COUNTA(Sheet1! $A:$A)))=0)*(COUNTA(Sheet1!$A:$A)))+(MOD(COLUMN(), (COUNTA(Sheet1!$A:$A))))-1,0)

error fixed... the 6 should not be hard coded


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Copying a column list from one sheet to another and repeating?

Thanks klswvu, one thing I didn't mention is that the column containing the
list on sheet 1 does have other content above it so the forumla would need to
specify which cell in the column the list starts from. Is that possible?

"klswvu" wrote:

=OFFSET(Sheet1!$A$1,((MOD(COLUMN(),(COUNTA(Sheet1! $A:$A)))=0)*(COUNTA(Sheet1!$A:$A)))+(MOD(COLUMN(), (COUNTA(Sheet1!$A:$A))))-1,0)

error fixed... the 6 should not be hard coded




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Copying a column list from one sheet to another and repeating?

Thanks klswvu, one thing I didn't mention is that the column containing the
list on sheet 1 does have other content above it so the forumla would need
to
specify which cell in the column the list starts from. Is that possible?

Yes...

Sheet1!$A$1 is the top value of the range it can be anything ie Sheet1!$A$20

COUNTA(Sheet1!$A:$A) needs to be modified ie COUNTA(Sheet1!$A$20:$A$100) or
you can make it a defined dynamic named range.

=OFFSET(Sheet1!$A$1,((MOD(COLUMN(),(COUNTA(Sheet1! $A:$A)))=0)*(COUNTA(Sheet1!$A:$A)))+(MOD(COLUMN(), (COUNTA(Sheet1!$A:$A))))-1,0)

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
Creating a new list of repeating data in a column Prin825 Excel Worksheet Functions 1 October 26th 07 10:13 PM
Dynamic column chart - copying from Sheet to Sheet. Marko Pinteric Excel Discussion (Misc queries) 1 April 10th 06 12:57 PM
Dynamic column chart - copying from Sheet to Sheet. Marko Pinteric Charts and Charting in Excel 1 April 10th 06 12:57 PM
Copying different repeating entries down a column Access Joe Excel Discussion (Misc queries) 2 January 13th 06 02:34 PM
Copying a column to a new sheet so that cells match. Nadeem Excel Worksheet Functions 0 October 11th 05 02:03 PM


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