+ Reply to Thread
Results 1 to 2 of 2

Distance Matrix - copy 402 times 402 rows of data from one sheet to the other

  1. #1
    Registered User
    Join Date
    02-04-2016
    Location
    Groningen, The Netherlands
    MS-Off Ver
    2010
    Posts
    1

    Distance Matrix - copy 402 times 402 rows of data from one sheet to the other

    Hello everyone,

    I am trying to make a distance matrix of 402 different regions in excel.
    My data is located in the first sheet and I created the matrix in the second.
    Unfortunately, the data I got sent is vertically formatted, thus 402x402=161,604 cells long.

    As you can imagine switching between both sheet and selecting and copy-pasting the corresponding 402 cells every time is a lot of work.
    I also tried referring to the first cell of the next set of 402 regions in sheet 1 and used the "+" sign in the bottom corner of the cell, which then copied the required 402 cells.
    However, I each time I need to add 402 to the next cell referring to the next set, but I need to do this about 400 times again...

    Is there a way in Excel to tell it that each new column in sheet 2 needs the next set of 402 cells from sheet one?

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Distance Matrix - copy 402 times 402 rows of data from one sheet to the other

    can you post a cut down sample.
    Attach a sample spreadsheet with expected results, remove any sensitive data.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. copy range from one sheet to another and then copy 5 times skipping ten rows
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2015, 01:35 PM
  2. [SOLVED] Copy Rows n times on new sheet
    By jhall488 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-04-2014, 03:49 PM
  3. [SOLVED] Google Distance Matrix API - Distance and Time
    By rtcwlomax in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 08:42 PM
  4. Copy rows x number of times into a new sheet
    By jeni_16 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-17-2013, 03:52 AM
  5. Loop/copy rows variable times to new sheet
    By ianmaggy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2009, 07:18 AM
  6. I need a macro to copy each of 2000 rows 12 times in same sheet
    By Cyn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2006, 04:30 PM
  7. [SOLVED] Loop/copy rows variable times to new sheet
    By Patti in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-01-2005, 05:05 AM

Tags for this Thread

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