+ Reply to Thread
Results 1 to 14 of 14

Add data from one column to a new sheet and enter it on 64 vertical cells

  1. #1
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Add data from one column to a new sheet and enter it on 64 vertical cells

    I have a column of codes that I require to put in a new sheet and copy them 64 times before the next code is put in. Can anybody help

    I have about 2100 rows in column A of the main sheet
    Attached Files Attached Files
    Last edited by Butehawk; 05-01-2010 at 05:28 PM. Reason: Attachment did not load

  2. #2
    Forum Contributor
    Join Date
    08-14-2006
    Location
    USA
    MS-Off Ver
    2019
    Posts
    686

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    you're running XL2003

    2100 codes * 64 lines = 134,400 lines (plus 2 since you're starting on line 3)

    since you only have 65,536 lines in XL2003 where do the remaining entries go?

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Try:

    =INDEX($B$7:$B$9,MOD(INT((ROW()-ROW($B$7))/64),64)+1)

    copied down

    adjust ranges to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    @ carsto

    Never thought of that!
    I was running XL2008 on my mac but it was so slow that I fired up my PC to try and get out of a rut.
    Might have to go back to the mac.
    Could I put the extra onto sheets 2 and 3 by splitting the data?

    Regards Roger
    Last edited by shg; 04-30-2010 at 06:13 PM.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    I like NBVC's formula...put here's one of my macros tweaked for your use...it creates as many sheets as needed.
    Please Login or Register  to view this content.

    That made 3 sheets for me from 2100 codes in about 3 seconds.
    Last edited by JBeaucaire; 04-27-2010 at 02:11 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Repeat 64 rows 2100 times.

    I have a list of 64 rows of text in one column, that I need to copy in block one below the other 2100 times. It comes from a sheet called "location Components Test" and has to go in the same workbook to sheets called Codes 1 to codes3. It is to be located in column B on these sheets and comes from sheet 1 starting at C3:C66.
    any help much appreciated.

    Roger

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Like so:
    Please Login or Register  to view this content.
    You can add this line to the bottom of the first macro to call this macro automatically:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Great this worked you are a Master my friend.


    I now have a bigger more complicated , at least in my mind it is, problem.
    I have to get the relevant data from the 2100 rows of data to go where I need it on my new codes sheets.
    At the moment I have hand input the data for the first one and linked it to my master data sheet " CUNN_MASTER (CODED)" .
    The data that needs to be copied and pasted is in the range "D3:U66".
    This data comes from row 3 on my master data sheet.
    The linked data for line 3 has the referance '[CUNN_MASTER (CODED).xls}Main"$"Column Number"$3
    Every time the range is pasted I have been changing the row number by "replacing" the $ "row number" by row +1.
    This is very time consuming.
    Can you help>
    Last edited by NBVC; 04-28-2010 at 10:15 PM.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Can't say I follow any of that. Care to demonstrate with a clearly demonstrative sample workbook?
    Last edited by JBeaucaire; 04-29-2010 at 01:19 PM.

  10. #10
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    I attach the sheet I should of.
    Sheet 1 shows what I am after from an extract of "Cunn-Master(coded)"
    I have added 3 lines from this workbook to sheet 2 to let you see what I have done.
    Is this any help?
    Attached Files Attached Files
    Last edited by shg; 04-30-2010 at 06:12 PM. Reason: deleted spurious quote

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Sorry, I have no idea. Perhaps you should close this thread and start your new question in a new thread. New threads garner the most attention from contributors.

  12. #12
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Ok Thanks for your help so far.
    I rushed what I was asking and it probably did not make sense. Hard to concentrate after a hard day at work.
    Last edited by shg; 04-30-2010 at 06:12 PM. Reason: deleted spurious quote

  13. #13
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Please stop using the QUOTE button to initiate your own replies...use the QUICK REPLY button to the right of that one. Quoting like that just makes the threads harder to read, clutters them with duplicate info for no reason. OK?

    If you do have something specific, quote just that section, delete out the rest.

    ========

    To close this thread, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  14. #14
    Registered User
    Join Date
    01-13-2010
    Location
    Erskine
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    34

    Re: Add data from one column to a new sheet and enter it on 64 vertical cells

    Removed. Due to posting in wrong place.
    Last edited by Butehawk; 05-01-2010 at 05:19 PM. Reason: Wrong place

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1