+ Reply to Thread
Results 1 to 8 of 8

Drag down formula to skip 2 reference rows.

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

    Drag down formula to skip 2 reference rows.

    All,

    I have the following formula in cell B5 of Sheet1: =SUMIF(Employee!B6:GE6,REFERENCES!J$4,Employee!B5:GE5)

    I would like to be able to drag it down to B6 but have the formula read as this: =SUMIF(Employee!B8:GE8,REFERENCES!J$4,Employee!B7:GE7)

    With the goal that every time I drag it down, it is referencing 2 rows ahead of the previous row. Please let me know if that is a clear enough explanation.

    Thank you for your time.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Drag down formula to skip 2 reference rows.

    Try this. if it doesn't work, please post an excel sheet.

    =SUMIF(OFFSET(Employee!$B$6:$GE$6,(ROWS($1:1)-1)*2,),REFERENCES!J$4,OFFSET(Employee!$B$5:$GE$5,(ROWS($1:1)-1)*2,))


    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Drag down formula to skip 2 reference rows.

    Try..in B5

    =SUMIF(INDEX(Employee!B:GE,(ROW(A1)-1)*2+6,),References!J$4,INDEX(Employee!B:GE,(ROW(A1)-1)*2+5,))

    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Drag down formula to skip 2 reference rows.

    Try

    =SUMIF(INDEX(Employee!B:GE,(ROWS($1:1)-1)*2+6,0),REFERENCES!J$4,INDEX(Employee!B:GE,(ROWS($1:1)-1)*2+5,0))

    Don't change the $1:1, that is not related to your data
    The *2 is the interval (every 2 rows)
    The +5 and +6 is the starting Row #s.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Drag down formula to skip 2 reference rows.

    Looking the the two subsequent posts, I realise that they're right... I think.

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

    Re: Drag down formula to skip 2 reference rows.

    All of the solutions work perfectly! Thank you all.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Drag down formula to skip 2 reference rows.

    Quote Originally Posted by Glenn Kennedy View Post
    Looking the the two subsequent posts, I realise that they're right.
    Yours works too.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Drag down formula to skip 2 reference rows.

    Oh, thanks for that... I didn't test it fully as it's been a bad hair day and I needed a beer; so I was in a bit of a rush.

    StudioLETA, thanks for the rep.
    Last edited by Glenn Kennedy; 01-09-2015 at 02:41 PM.

+ 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 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
  2. [SOLVED] Drag down formula to skip a large number of rows
    By exclaymation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-19-2013, 11:23 PM
  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