+ Reply to Thread
Results 1 to 5 of 5

Change cell ref when formula is copied down

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Change cell ref when formula is copied down

    Hi Gurus,

    Can't find a formula that would look in every row when it is copied down to let's say every fourth row. Example:

    Source (Sheet1):

    A1=A
    A2=B
    A3=C
    etc.

    The results would read in Sheet2:

    A1=A
    A5=B
    A9=C
    etc.

    Any ideas?

    Thanks in advance chaps!
    Last edited by ABSTRAKTUS; 01-16-2012 at 01:03 PM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Change cell ref when formula is copied down

    In cell A1 on Sheet 2 put the formula:

    =IF(MOD(ROW(),4)<>1,"",INDEX(Sheet1!A:A,INT((ROW()-1)/4)+1))

  3. #3
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Change cell ref when formula is copied down

    Brr... Can't work it out! The source data starts in B5 going down (Sheet1), The results should show in cells: D5, D12, D19, D26, D33 etc. so every seventh row (just realized I have merged cells). Where it went wrong? I've changed 4's to 7's in your formula, Sheet1!A:A is now Sheet1!B:B and still doesn't work...

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Change cell ref when formula is copied down

    My formula is dependent on the data and the formula both starting in row 1.

    Easily fixed, though...

    =IF(MOD(ROW()-4,7)<>1,"",INDEX(Sheet1!$B$5:$B$500,INT((ROW()-5)/7+1)))

  5. #5
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: Change cell ref when formula is copied down

    Phew... Got it now. Thanks mate!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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