+ Reply to Thread
Results 1 to 6 of 6

Copy cell values in other column with variable intervals

  1. #1
    Registered User
    Join Date
    03-19-2016
    Location
    brisbane
    MS-Off Ver
    2013
    Posts
    3

    Question Copy cell values in other column with variable intervals

    I need to copy value from cell B3 in cell C4:C5 and then value from cell B6 in C7:C14 and then value B15 in Cell C16:C19, etc. intervals are always variable. Is there any VBA code I can use to do this with just a few clicks?. Many thanks

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Copy cell values in other column with variable intervals

    is there a pattern?

    1st column+1, row+1,row+2
    2nd column+1, row+1-row+8
    3rd column+1, row+1-row+4

    with a pattern VBA is easy,

  3. #3
    Registered User
    Join Date
    03-19-2016
    Location
    brisbane
    MS-Off Ver
    2013
    Posts
    3

    Re: Copy cell values in other column with variable intervals

    Hi rcm,
    Yes everytime a get the report will be a pattern to follow, e.g

    Acct USD "Copy data in this column" date
    2-xxxx
    12 "need acct # here" 1/01/2016
    13 "need acct # here" 1/01/2016
    87 "need acct # here" 1/01/2016
    3 "need acct # here" 23/02/2016
    3-xxxx
    15 "need acct # here" 28/11/2015
    16 "need acct # here" 9/12/2015
    90 "need acct # here" 31/01/2016
    6 "need acct # here" 31/12/2016
    3 "need acct # here" 5/11/2015
    18 "need acct # here" 16/11/2015
    19 "need acct # here" 8/01/2016


    It will go on for 2000 row but different intervals.

    many thanks

    Cheers

  4. #4
    Registered User
    Join Date
    03-19-2016
    Location
    brisbane
    MS-Off Ver
    2013
    Posts
    3

    Re: Copy cell values in other column with variable intervals

    Sorry it looks messy, here is file as picture

    Query.jpg

    It continues same pattern in column but different number of row, one account only need with 3 rows, next 145 rows, next 24 rows, etc
    Last edited by ce169; 03-20-2016 at 07:30 AM.

  5. #5
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Copy cell values in other column with variable intervals

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    12-14-2012
    Location
    Czech Republic
    MS-Off Ver
    Excel 2010
    Posts
    92

    Re: Copy cell values in other column with variable intervals

    Hello ce169,

    refering to the picture the Acc number to fill in column C...
    BTW better is to post a sample file than a pic...

    You can give a try to my solution:

    Please Login or Register  to view this content.
    Regards,
    sysss

+ 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] Reference a variable cell in a SUM formula based on values in a different column
    By sshot1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-17-2013, 12:40 PM
  2. [SOLVED] Copy With Intervals Paste With No Intervals.
    By gorinw10 in forum Excel General
    Replies: 12
    Last Post: 07-20-2013, 12:23 PM
  3. [SOLVED] Copy/populate rows based on variable cell values
    By matchooo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2013, 09:49 PM
  4. [SOLVED] Loop-copy cell values from a row, and then copy them into a column
    By vukovicnikola in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2012, 06:03 AM
  5. Replies: 0
    Last Post: 09-06-2012, 04:06 AM
  6. Macro to copy and paste variable ranges according to values in a column
    By abinayan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2011, 11:11 AM
  7. Replies: 2
    Last Post: 08-31-2010, 10:31 AM
  8. Replies: 2
    Last Post: 03-01-2010, 06:51 AM

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