+ Reply to Thread
Results 1 to 8 of 8

Copying a dynamic range

  1. #1
    Registered User
    Join Date
    11-13-2008
    Location
    Colorado
    Posts
    89

    Copying a dynamic range

    So I have data in A1:A1000
    In the B column I need to have every 10th value from A so when I copy the function down I will have 100 values in the B column. Is this an indirect function?

    THANKS in advanced!

    Dr. Gannon

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Copying a dynamic range

    Would you like the values to appear in the same row?


    Like, B10 = A10, B20 = A30, but in between those values, just blanks in the B column?

    If that's it, put this into cell B1 and copy down to B1000: =IF(MOD(ROW(),10)=0,A1,"")



    IF you mean, you want the 100 values to show up in B1:B100, use this formula: =OFFSET(A$1,ROW(A1)*10-1,0)
    Put that in B1 and copy down through B100
    Last edited by GeneralDisarray; 04-20-2015 at 11:00 AM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    11-13-2008
    Location
    Colorado
    Posts
    89

    Re: Copying a dynamic range

    No
    b1=a1
    b2=a11
    b3=a21

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Copying a dynamic range

    Ok, then try this:

    =OFFSET(A$1,(ROW(A1)-1)*10,0)

    Put that in Cell B1, then copy down as needed.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Copying a dynamic range

    Here's another one...

    Entered in B1 and copied down to B100:

    =INDEX(A$1:A$1000,ROWS(B$1:B1)*10-10+1)

    B1 = A1
    B2 = A11
    B3 = A21
    B4 = A31
    etc
    etc
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    11-13-2008
    Location
    Colorado
    Posts
    89

    Re: Copying a dynamic range

    That's it...I can never remember the indirect/offset functions...Also, love the name General!

  7. #7
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Copying a dynamic range

    Glad it helped, thanks for the Index() alternative Tony

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Copying a dynamic range


+ 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] Conditional copying in dynamic range
    By StephenVerheul in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2013, 05:08 AM
  2. Copying dynamic range to another column
    By GSCCK in forum Excel General
    Replies: 3
    Last Post: 09-05-2011, 03:34 AM
  3. Copying a dynamic range to new worksheet
    By Chezterfield in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2010, 05:54 PM
  4. copying and pasting a dynamic range
    By mashoutposse in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2010, 06:16 PM
  5. copying dynamic range based on cell outside of range
    By xcelelder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2005, 12:08 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