+ Reply to Thread
Results 1 to 7 of 7

Drag formula down and copy results from table x number of times

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Drag formula down and copy results from table x number of times

    Column B contains unique values which I need to copy down column A in groups of 17 (I only did groups of 4 for display purposes).

    In the end, the real data has over 750 unique values in column B so when multiplied by the groupings of 17 would make over 13000 rows for column A.

    Can this be done with a formula?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,498

    Re: Drag formula down and copy results from table x number of times

    Hi there,

    Take a look at the attached workbook and see if it does what you need.

    The values to be copied are contained in a (highlighted) Named Range - the extent of this range should be increased to suit your own requirements.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Drag formula down and copy results from table x number of times

    Thanks Greg. Works great

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

    Re: Drag formula down and copy results from table x number of times

    Try this...

    Data Range
    A
    B
    1
    11aa
    11aa
    2
    11aa
    11ac
    3
    11aa
    13ab
    4
    11aa
    13ae
    5
    11ac
    6
    11ac
    7
    11ac
    8
    11ac
    9
    13ab
    10
    13ab
    11
    13ab
    12
    13ab
    13
    13ae
    14
    13ae
    15
    13ae
    16
    13ae
    17
    ------
    ------


    This formula entered in A1:

    =IFERROR(INDEX(B$1:B$4,CEILING(ROWS(A$1:A1)/4,1)),"")

    Replace the highlighted 4 with 17.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,498

    Re: Drag formula down and copy results from table x number of times

    Hi again,

    Many thanks for your feedback and also for the Reputation increase

    Glad I was able to help.

    Best regards,

    Greg M

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Drag formula down and copy results from table x number of times

    Thanks Biff. This works great as well.

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

    Re: Drag formula down and copy results from table x number of times

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. Need code to copy and paste a formula a different number of times on each column
    By alchavar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2015, 11:39 AM
  2. Drag and copy based on pivot table cell
    By m.yarahmadi in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-30-2014, 02:18 AM
  3. Formula to copy pivot table results if match into master sheet
    By monmar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-16-2012, 10:03 PM
  4. [SOLVED] Copy and Drag ,but keep number the same for 25 rows ANY HELP THANK YOU
    By Garu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2012, 07:08 PM
  5. Replies: 3
    Last Post: 01-27-2011, 10:02 AM
  6. Copy a table data "x" number of times to another sheet
    By rkayasth in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-20-2009, 04:02 AM
  7. [SOLVED] Copy a formula down a set number of times
    By Julian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2005, 02:05 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