+ Reply to Thread
Results 1 to 8 of 8

Drag down formula to skip 2 rows.

  1. #1
    Registered User
    Join Date
    01-08-2015
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    21

    Drag down formula to skip 2 rows.

    All,

    I have the following formula in cell 'Employee' B5: =IF(OFFSET('Detailed Hours'!$B$3,ROW(B3)-1,0)=0,"",OFFSET('Detailed Hours'!$B$3,ROW(B3)-1,0))

    I would like to be able to drag it down so that cell B6 is empty and then cell B7 reads :=IF(OFFSET('Detailed Hours'!$B$3,ROW(B4)-1,0)=0,"",OFFSET('Detailed Hours'!$B$3,ROW(B4)-1,0))

    I've been playing around trying to insert the INDEX function or change the OFFSET variables, but I cant seem to figure it out because I do not fully understand how they work.

    Thank you for your time.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Drag down formula to skip 2 rows.

    Please attach sample file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Drag down formula to skip 2 rows.

    Try this,

    Replace the Row(B4) with INDIRECT("B"&(ROW()+1)/2)
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-08-2015
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    21

    Re: Drag down formula to skip 2 rows.

    Please find a example spreadsheet attached. Let me know if I need to describe more.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-08-2015
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    21

    Re: Drag down formula to skip 2 rows.

    MarvinP, this is what I did, but it did not seem to work.

    =IF(OFFSET('Detailed Hours'!$B$3,INDIRECT("B"&(ROW()+1)/2),0)=0,"",OFFSET('Detailed Hours'!$B$3,INDIRECT("B"&(ROW()+1)/2),0))

  6. #6
    Registered User
    Join Date
    01-08-2015
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    21

    Re: Drag down formula to skip 2 rows.

    MarvinP, this is what I did, but it did not seem to work.

    =IF(OFFSET('Detailed Hours'!$B$3,INDIRECT("B"&(ROW()+1)/2),0)=0,"",OFFSET('Detailed Hours'!$B$3,INDIRECT("B"&(ROW()+1)/2),0))

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Drag down formula to skip 2 rows.

    A5=IF(MOD(ROW(A1),2)=0,"",OFFSET('Detailed Hours'!A$5,INT((ROW(A1)-1)/2),0))
    Try this in "Employee" Sheet and copy across

  8. #8
    Registered User
    Join Date
    01-08-2015
    Location
    NYC
    MS-Off Ver
    2010
    Posts
    21

    Re: Drag down formula to skip 2 rows.

    nflsales, works perfectly, thank you!

+ 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. [SOLVED] Drag down formula to skip 2 reference rows.
    By StudioLETA in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-09-2015, 02:37 PM
  2. [SOLVED] Drag down an count if formula and skip by 12 rows
    By johnnypol in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-23-2014, 10:41 AM
  3. Excel 2007 : Copy/Drag Formula's - Need to Skip Rows
    By Rapacious in forum Excel General
    Replies: 3
    Last Post: 03-01-2012, 06:10 PM
  4. Drag formula but skip 27 rows
    By rhudgins in forum Excel General
    Replies: 3
    Last Post: 07-20-2010, 06:08 PM
  5. drag formula and skip blanks rows
    By patsureway in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2008, 09:41 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