Welcome to the Excel Forum

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.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 01-27-2010, 10:04 AM
Joe Braden Joe Braden is offline
Registered User
 
Join Date: 27 Jan 2010
Location: Louisville, KY
MS Office Version:Excel 2007
Posts: 2
Joe Braden is becoming part of the community
Question Formula to link a column of data between 2 worksheets and duplicate rows

Please Register to Remove these Ads

I'm in need of a formula, or another automated technique, to link a column of data from one worksheet to another. I have an input worksheet that I copy the raw data into that is formatted as follows:

COLUMN A
Row 1 12001
Row 2 12004
Row 3 12011
Row 4 12020
Row 5 13050
etc...

I need this import sheet to link to an output worksheet that would be updated automatically as new data is entered into the input sheet. However, I need the output sheet to copy the input values a specified # of the times and list them. For example, if the specified # was 3, it would be formatted as follows:

COLUMN A
Row 1 12001
Row 2 12001
Row 3 12001
Row 4 12004
Row 5 12004
Row 6 12004
Row 7 12011
etc...

I need the formula, or method, to be one that I don't have to continually re-enter as the data changes, as I have thousands of records to do this with. I've tried filling down, but autofill doesn't recognize an accurate trend. Is this something that I can accomplish by combining several fomulas, creating macros, or a combination of the both? Any help would be greatly appreciated.

Last edited by Joe Braden; 01-29-2010 at 10:03 AM.
Reply With Quote
  #2  
Old 01-27-2010, 10:33 AM
NBVC's Avatar
NBVC NBVC is offline
Forum Guru
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
MS Office Version:2003 & 2007
Posts: 18,506
NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future NBVC has a brilliant future
Re: Formula to link a column of data between 2 worksheets and duplicate rows

If you can start in Row 2 of Sheet2 (i.e.in Sheet2!A2) then:

and assuming raw data starts in A1 of Sheet1....

Code:
=IF(COUNTA($A$1:A1)>=COUNTA(Sheet1!A:A)*3,"",INDEX(Sheet1!A:A,MOD(INT((ROW(A1)-ROW($A$1))/3),COUNTA(Sheet1!A:A))+1))
copied down

Replace the 3's with an absolute cell reference containing a 3 if you want it to be more dynamic.
__________________
Where there is a will there are many ways. Pick One!

Please read the Forum Rules

If you are happy with the results, please add to my reputation by clicking the icon next to the Post # in the bar above my avatar (picture) in this post.

Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Reply With Quote
  #3  
Old 01-29-2010, 09:50 AM
Joe Braden Joe Braden is offline
Registered User
 
Join Date: 27 Jan 2010
Location: Louisville, KY
MS Office Version:Excel 2007
Posts: 2
Joe Braden is becoming part of the community
Thumbs up Re: Formula to link a column of data between 2 worksheets and duplicate rows

NBVC,

This is exactly what I needed.

Thx a ton for your help with this. I had reached out to numerous resources, and was unable to find a solution.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump