+ Reply to Thread
Results 1 to 8 of 8

How to drag a formula while skipping every other cell reference

Hybrid View

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    How to drag a formula while skipping every other cell reference

    Hi,

    I have a formula below that I want to drag and also skip every other cell reference.

    A2:=(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(90:$1083),FALSE)),HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(90:$1083),FALSE),0))/1000

    So this formula basically looks up a value in row 90 from another her tab and tells me the value.

    Now I want to drag this formula so that A3 and A4 and onwards look like this:
    A3:=(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(92:$1083),FALSE)),HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(92:$1083),FALSE),0))/1000

    A4:=(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(94:$1083),FALSE)),HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(94:$1083),FALSE),0))/1000

    A5:=(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(96:$1083),FALSE)),HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(96:$1083),FALSE),0))/1000

    Please help! I also can't use a helper column because I am not allowed to change the format of the sheet.

    Thanks,

  2. #2
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: How to drag a formula while skipping every other cell reference

    Try...

    Formula: copy to clipboard
    =(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,Sheet2!$D$2:$O$1660,ROW(INDIRECT((86+2*ROW())&":$1083")),FALSE)),HLOOKUP(Sheet1!$C$10,Sheet2!$D$2:$O$1660,ROW(INDIRECT((86+2*ROW())&":$1083")),FALSE),0))/1000

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    Re: How to drag a formula while skipping every other cell reference

    No that didnt work

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: How to drag and skip cell reference

    It looks as if you just want the 90 in the ROW function to increase by 2 for each successive row. You can do that like this in A2:

    =(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(88+2*ROWS($1:1):$1083),FALSE)),HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(88+2*ROWS($1:1):$1083),FALSE),0))/1000

    then copy down.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    08-05-2013
    Location
    new york city, new york
    MS-Off Ver
    Excel 2011
    Posts
    20

    Re: How to drag and skip cell reference

    It didn't work. it says the formula you typed containts an error

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,408

    Re: How to drag and skip cell reference

    Okay, try it like this in A2:

    =(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(INDIRECT(88+2*ROWS($1:1)&":$1083")),FALSE)),HLOOKUP(Sheet1!$C$10,'Sheet2'!$D$2:$O$1660,ROW(INDIRECT(88+2*ROWS($1:1)&":$1083")),FALSE),0))/1000

    Then copy down.

    Hope this helps - if not, then post an example workbook so we can see what you are trying to do.

    Pete

  7. #7
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: How to drag and skip cell reference

    Hmmm... now that I'm looking at the formula rather than how to adapt for skipping rows, you're using an array of numbers for the HLOOKUP row index argument. In a non-array formula, you can only use one number (positive integer) for the row index argument. 90 to 1083 is approaching 1000 numbers.

  8. #8
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: How to drag a formula while skipping every other cell reference

    Try...

    =(IF(ISNUMBER(HLOOKUP(Sheet1!$C$10,Sheet2!$D$2:$O$1660,88+2*ROW(1:1),FALSE)),HLOOKUP(Sheet1!$C$10,Sheet2!$D$2:$O$1660,88+2*ROW(1:1),FALSE),0))/1000

+ 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. Drag and drop formula while skipping cells in the reference.
    By Carlos90 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-13-2013, 05:57 PM
  2. [SOLVED] Drag down range formula (skipping one row)
    By thaphthia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2013, 12:52 PM
  3. [SOLVED] Drag/Fill column while skipping multiple reference rows in another worksheet
    By chandlerrw in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2013, 07:59 PM
  4. [SOLVED] how to drag and copy a formula by skipping rows
    By loboexcel in forum Excel General
    Replies: 7
    Last Post: 12-17-2012, 11:18 AM
  5. Replies: 3
    Last Post: 10-04-2012, 02:49 PM

Tags for this Thread

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