+ Reply to Thread
Results 1 to 3 of 3

Skipping a cell when copying down a formula, cannot get ROW(1:1) to skip to (ROW(2:2)

  1. #1
    Registered User
    Join Date
    06-21-2014
    Location
    usa
    MS-Off Ver
    2010
    Posts
    1

    Skipping a cell when copying down a formula, cannot get ROW(1:1) to skip to (ROW(2:2)

    I am trying to figure out how to skip a cell when copying down a formula, I have to fill the formula down around 2000 rows to cannot do so manually. Specifically in cell B2 I have the formula:

    INDEX(Sheet1!$BV$3:$BV$311,SMALL(IF($A2=Sheet1!$BV$3:$BV$311,ROW(Sheet1!$BV$3:$BV$311)-ROW(Sheet1!$BV$3)+1),ROW(1:1))))

    I want to skip cell B3 and have the following formula automatically copied into cell B4:

    INDEX(Sheet1!$BV$3:$BV$311,SMALL(IF($A2=Sheet1!$BV$3:$BV$311,ROW(Sheet1!$BV$3:$BV$311)-ROW(Sheet1!$BV$3)+1),ROW(2:2))))

    What is happening now is I cannot get the ROW formula at the end from changing when I copy the formula down. So cell B4 is always coming up as:

    INDEX(Sheet1!$BV$3:$BV$311,SMALL(IF($A4=Sheet1!$BV$3:$BV$311,ROW(Sheet1!$BV$3:$BV$311)-ROW(Sheet1!$BV$3)+1),ROW(3:3))))

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Skipping a cell when copying down a formula, cannot get ROW(1:1) to skip to (ROW(2:2)

    CEILING(ROW(1:1)/2,1) would give
    1
    1
    2
    2
    3
    3
    but you would still have a formula in every row just repeated twice
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

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

    Re: Skipping a cell when copying down a formula, cannot get ROW(1:1) to skip to (ROW(2:2)

    See if you can adapt this example.

    Data Range
    B
    C
    D
    E
    F
    G
    1
    ------
    ------
    ------
    ------
    ------
    ------
    2
    1
    x
    1
    3
    x
    2
    4
    2
    h
    5
    5
    j
    4
    6
    3
    x
    3
    7
    d
    2
    8
    4
    x
    4
    9


    This array formula** entered in B2 and copied down:

    =IF(MOD(ROWS(B$2:B2),2)=0,"",INDEX(G:G,SMALL(IF(F$2:F$8="x",ROW(F$2:F$8)),CEILING(ROWS(B$2:B2)/2,1))))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Not skipping cell when dragging or copying
    By radoslawz in forum Excel General
    Replies: 14
    Last Post: 08-08-2013, 01:00 PM
  2. [SOLVED] Copying a formula down but skipping cells
    By dnsmc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-15-2013, 03:05 AM
  3. Copying a formula and skipping rows
    By jmoffett in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-10-2011, 10:58 PM
  4. Skipping columns when copying formula
    By rhudgins in forum Excel General
    Replies: 13
    Last Post: 09-07-2011, 03:15 PM
  5. Copying formula while skipping colums/cells
    By chancey in forum Excel General
    Replies: 1
    Last Post: 07-15-2009, 01:19 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