+ Reply to Thread
Results 1 to 6 of 6

copy and paste from contiguous cells to non-contiguous cells using the = function

  1. #1
    Registered User
    Join Date
    12-04-2013
    Location
    nashville, tn
    MS-Off Ver
    Excel 2010
    Posts
    23

    copy and paste from contiguous cells to non-contiguous cells using the = function

    I am trying to enter contiguous cells which contain serial numbers from sheet 2 (Devices List) to Sheet 1 (Copier meter Log). The trick is that I need the serials to be placed every 17 rows on sheet 1.
    For Example:
    Sheet 1 A2 needs to equal Sheet 2 B3. Then Sheet 1 A19 needs to equal Sheet 2 B4 and so on in that pattern (see attached file). I have over 1000 serials to add and hope I don't have to copy and paste each cell onto sheet 1.

    Any help would be greatly appreciated...
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: copy and paste from contiguous cells to non-contiguous cells using the = function

    The code below will put sr nos at 2, 17, ... but that's all it does.
    Please Login or Register  to view this content.
    Last edited by protonLeah; 12-05-2013 at 01:17 AM.
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: copy and paste from contiguous cells to non-contiguous cells using the = function

    Do you want a formula to use in your mauve cell (A2, A19 etc.)?

    =INDIRECT("'Devices List'!$B"&(ROW()-2)/17+3)

    This formula will solve your problem. Then all you have to do is copy the blocks of 17 rows down the worksheet, and the next row from the Device List sheet will come through.

    Please remember, your request is clearer if you attach a sample workbook.
    - Click on Go Advanced and click on the Paper Clip.
    When you reply please make it clear WHO you are responding to by using the Quote
    feature or mention their name.
    If we have been of assistance, please let us know. A little thanks goes a long way.
    - Please click on the *Add Reputation button at the bottom of helpful responses.
    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

  4. #4
    Registered User
    Join Date
    12-04-2013
    Location
    nashville, tn
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: copy and paste from contiguous cells to non-contiguous cells using the = function

    I am not familiar yet with how to utilize this. I guess that's Visual Basic? Thanks for the reply, though..

  5. #5
    Registered User
    Join Date
    12-04-2013
    Location
    nashville, tn
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: copy and paste from contiguous cells to non-contiguous cells using the = function

    AMAZING!!! It works perfect! Thanks so much! I hope I can "Pay it Forward" one day!!! Thanks David!!!

  6. #6
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: copy and paste from contiguous cells to non-contiguous cells using the = function

    You're welcome Shameus. Thank you for the encouragement.

+ 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. [SOLVED] How to sum non-contiguous columns applied as a formula on contiguous cells
    By figo12 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 01:07 PM
  2. Copy and Paste an array (contiguous & non contiguous ranges)
    By Xrull in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2010, 09:17 AM
  3. Function to count non-contiguous cells in a column and sums the cells
    By Ace of Clubs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-24-2009, 06:34 AM
  4. Copy Non Contiguous cells
    By jerryliang2k in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2008, 02:01 PM
  5. Paste Data into Contiguous (Visible) Cells
    By trev_sk8r in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-16-2006, 05:10 PM

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