+ Reply to Thread
Results 1 to 4 of 4

Skipping Cells When Auto Filling

  1. #1
    Registered User
    Join Date
    05-03-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    8

    Skipping Cells When Auto Filling

    I would like to autofill every 5 cells and also have a VLOOKUP function auto fill every 5 cells. The source table of data is in a list that has no spaces.

    For Example,

    Sheet 1
    -----A-------B-------C------D------E
    1---Bob------5
    2---Bill-------6
    3---Steve---12
    4
    5

    Sheet 2
    -------A-------B--------C--------D
    1-----Bob
    2------5
    3
    4
    5
    6-----Bill
    7------6
    8
    9
    10
    11--Steve
    12----12

    In Sheet 2, Cells A2, A7 and A12 contain VLOOKUP functions.

    Thank You in advance for your help!
    Last edited by brockco; 05-03-2013 at 02:26 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Skipping Cells When Auto Filling

    Try this..

    Add a repeating sequence of 5 numbers down column B e.g. 1,2,3,4,5,1,2,3,4,5,1,2,3,4,5....

    Turn autofilters on to just show the rows 2,7,12 etc (all will have a 2 in column B)

    Add the vlookup formula to A2.

    Drag down.

    Remove the autofilter.
    Martin

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Skipping Cells When Auto Filling

    Try this

    Sheet2

    A1: =IFERROR(INDEX(Sheet1!A:B,INT((ROWS(A$1:A1)-1)/5+1),MOD(ROWS(A$1:A1)-1,5)+1),"")

    Copy down as far as needed
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-03-2013
    Location
    Winnipeg
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Skipping Cells When Auto Filling

    Mama, how would I do that if my table in sheet 1 had 7 columns instead of 2?
    Last edited by brockco; 05-06-2013 at 08:36 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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