+ Reply to Thread
Results 1 to 2 of 2

Drag fill only every other cell

Hybrid View

  1. #1
    Registered User
    Join Date
    06-03-2021
    Location
    SA
    MS-Off Ver
    2019
    Posts
    1

    Drag fill only every other cell

    HELLO

    I would like to paste some subtotals in a sheet (sheet2) in a row from another sheet (sheet1). easier is to just say first cell in sheet 2 = first subtotal in sheet 1 and then drag......
    BUT in sheet 1 I have blank cells in between the subtotals and in sheet 2 I don't want those blank cells but they copy across when I drag the fill handle.
    How can I skip those unwanted cells when I drag to copy and fill. I want the cells in sheet 2 to = those in sheet one.
    I do not want to add hidden columns to sheet 2 to match format of shet 1 because that will mess up the chart.
    Please advise and thank you in advance.
    Last edited by Jus1979; 06-03-2021 at 03:57 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,296

    Re: Drag fill only every other cell

    Instead of a simple link, like

    =Sheet1!B2

    Use a formula that will be "copy-able" like this

    =INDEX(Sheet1!2:2,COLUMN(A1)*2)

    You just need to know the first cell and the spacing: with a spacing of 3, and the first cell in column E (E2) instead of column B:

    =INDEX(Sheet1!2:2,COLUMN(A1)*3 +2)

    For the first cell, this part COLUMN(A1)*3+2 evaluates to 5, returning the value from E2

    This shows the result of a column of those formulas starting in cell B2:
    Attached Images Attached Images
    Last edited by Bernie Deitrick; 06-03-2021 at 05:18 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. Replies: 0
    Last Post: 03-25-2021, 11:55 PM
  2. Code to disable fill handle and cell drag & drop for specific worksheet only
    By Dbroek in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2020, 04:24 PM
  3. How to disable drag auto-fill, but allow drag shift-entire-row?
    By superlative in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2019, 06:13 PM
  4. [SOLVED] Is there a DRAG option to fill every second cell?
    By sherpamick in forum Excel General
    Replies: 6
    Last Post: 09-06-2016, 11:02 AM
  5. 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
  6. 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
  7. 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

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