+ Reply to Thread
Results 1 to 7 of 7

Is there a DRAG option to fill every second cell?

  1. #1
    Registered User
    Join Date
    06-02-2016
    Location
    Waterford, Ireland
    MS-Off Ver
    2013
    Posts
    11

    Is there a DRAG option to fill every second cell?

    I have an excel sheet which has a series of numbers one cell after the other. I must transfer them to a form where there is 1 space between the cells. See attached sample. If all the cells in the second FORM TAB were one after the other I could simple enter in the first cell in FORM TAB "=Adjust!B3" and drag the cell to the bottom but because it is every other cell I cannot do this.
    Note, I don't think VLOOKUP or MATCH & INDEX will work as there are small differences in the way the rooms are worded, also I have Hundreds of cells to copy.

    Thanking you in Advance.
    Sherpamick
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Is there a DRAG option to fill every second cell?

    The obvious suggestion is to remove the blank rows between cells.

    If you get rid of the spurious spaces in your data and make the inputs on worksheet Adjust consistent,

    A
    B
    C
    D
    3
    Ground Floor Room 17A
    45
    C3: =IFERROR(VLOOKUP(CONCATENATE(A3, " - ", B3), Adjust!$A$3:$B$11, 2, FALSE), "")
    4
    5
    Ground Floor Room 21M
    52
    6
    7
    First Floor Hall A
    21
    8
    9
    West Wing Room 95
    22
    10
    11
    West Wing Room 7
    16
    12
    13
    West Wing Hall B
    85
    14
    15
    West Wing Hall K
    45
    16
    17
    First Floor Hall B
    78
    18
    19
    First Floor Room 23
    74
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-02-2016
    Location
    Waterford, Ireland
    MS-Off Ver
    2013
    Posts
    11

    Re: Is there a DRAG option to fill every second cell?

    SHG, Thanks - Can't do that as I would later have to reinstate them, Document "Adjust" can not be amended. IE it must be returned with the Empty spacing Cells. Also Concatenate will not work as we added "hints" to the names for our own direction. Appreciate your time and help.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Is there a DRAG option to fill every second cell?

    A
    B
    C
    D
    3
    Ground Floor Room 17A
    45
    C3: =IF(MOD(ROWS($C$3:C3), 2), INDEX(Adjust!$B$3:$B$11, (ROWS($C$3:C3) + 1)/2), "")
    4
    5
    Ground Floor Room 21M
    52
    6
    7
    First Floor Hall A
    21
    8
    9
    West Wing Room 95
    22
    10
    11
    West Wing Room 7
    16
    12
    13
    West Wing Hall B
    85
    14
    15
    West Wing Hall K
    45
    16
    17
    First Floor Hall B
    78
    18
    19
    First Floor Room 23
    74


    But that's a really terrible design.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Is there a DRAG option to fill every second cell?

    Or enter the formula shown in C3, select C3 and empty cell D3, and drag down:

    A
    B
    C
    D
    3
    Ground Floor Room 17A
    45
    C3: =INDEX(Adjust!$B$3:$B$11, (ROWS($C$3:C3) + 1)/2)
    4
    5
    Ground Floor Room 21M
    52
    6
    7
    First Floor Hall A
    21
    8
    9
    West Wing Room 95
    22
    10
    11
    West Wing Room 7
    16
    12
    13
    West Wing Hall B
    85
    14
    15
    West Wing Hall K
    45
    16
    17
    First Floor Hall B
    78
    18
    19
    First Floor Room 23
    74

  6. #6
    Registered User
    Join Date
    06-02-2016
    Location
    Waterford, Ireland
    MS-Off Ver
    2013
    Posts
    11

    Re: Is there a DRAG option to fill every second cell?

    Thanks shg, ill give it a go.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Is there a DRAG option to fill every second cell?

    You're welcome.

+ 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. select option => auto fill cell
    By wired in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-10-2013, 09:08 AM
  2. How to use use automatic cell fill drag feature while string inside???
    By Daniel.Blesener in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2012, 10:07 AM
  3. Drag and Fill
    By XCBeast944 in forum Excel General
    Replies: 3
    Last Post: 05-22-2008, 12:33 PM
  4. Remove cell fill option
    By Sharp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2008, 11:55 AM
  5. how to fill formula in any cell and drag it?
    By vumian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2006, 10:46 AM
  6. How to avoid black shade fill on the from cell,when drag-and-drop
    By Salesi Fono in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 06-09-2006, 03:15 PM
  7. [SOLVED] The fill feature in Excel that gives option to fill or copy
    By KAHelman in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-29-2005, 03:05 PM
  8. [SOLVED] Drag option
    By pcachoi in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-26-2005, 05:06 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