+ Reply to Thread
Results 1 to 6 of 6

Help with Offset & dragging forumlas

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help with Offset & dragging forumlas

    There are a few other threads like this already, hoping to gain a bit more clarification in explaining why it works, not just a forumlas. I do MUCH better when I understand how it works.

    This is my goal - These are starting in cell A16 going down.
    =‘Database'!B6
    =‘Database'!B11
    =‘Database'!B16
    =‘Database'!B21

    When dragging A16/A17 down I get thie

    =‘Database'!B6
    =‘Database'!B11
    =‘Database'!B8
    =‘Database'!B13

    I know I need to use offset, something similar to this:

    =(OFFSET(‘Database'!B6,(ROWS(A$1:A1)-1)*2,0))

    but i'm trying to figure out how to do it. (ROWS(A$1:A1)-1)*2,0)) confuses me. I partially stole this from another post so I'm trying to figure out what I need to put to make this applicable to my sheet.
    Last edited by Nickwell24; 08-31-2013 at 11:20 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Help with Offset & dragging forumlas

    Please Login or Register  to view this content.
    (ROWS(A$1:A1) gives the result 1

    this counts (1 - 1)= 0*2 => zero * 2 = zero

    If you drag that formula down you will get the formula

    (ROWS(A$1:A2)

    This gives the result 2

    etc. etc.

    (try it in your sheet).

    So it count (2-1) = 1 * 2 = 2

    the 3rth line will give as result

    (3-1) * 2 = 2 * 2 = 4.

    Hope I explained it well enough.


    In your example you want to make steps of 5 rows (instead of 2 rows).

    So you have to multiply * 5.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

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

    Re: Help with Offset & dragging forumlas

    You probably just need to change the *2 to *5

  4. #4
    Registered User
    Join Date
    10-25-2012
    Location
    Missouri, USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help with Offset & dragging forumlas

    Thank you so much, you just saved me hours of frusteration trying to figure this out. Essentially it just makes it a counter. With your help I was able to get my forumla going correctly.

    For anybody needing to skip 4 reference cells this worked for me.

    =(OFFSET(‘Database'!B6,(ROWS(A$1:A1)-1)*4,0))

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Help with Offset & dragging forumlas

    welcome to the forum, Nickwell24.
    ROWS(A$1:A1) counts the number of rows in the given range. A1:A1 only contains 1 row. so it returns 1. because the starting row is fixed (A$1), copying down the formula makes it (A$1:A2) & that returns 2. from your eg, you need the rows to be incremental by 5, so you need:
    =OFFSET(Database!$B$6,(ROWS(A$16:A16)-1)*5,0)
    i prefer to make the rows where the formula is, so i used A16. so this is essentially saying:
    from Database!$B$6, go down (1 row minus 1) times 5. 1 row minus 1 is 0. 0 * 5 is 0. so A16 gives me Database!$B$6.

    when copied down, it would be
    from Database!$B$6, go down (2 rows minus 1) times 5. 2 rows minus 1 is 1. 1 * 5 is 5. so A17 gives me from Database!$B$11
    and so on

    but here's an alternative since OFFSET can be volatile (you can google for this):
    =INDEX(Database!B:B,6+(ROWS(A$16:A16)-1)*5)
    it's similar, but since i'm starting from Database!B1, i need to add 6 rows in front

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

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

    Re: Help with Offset & dragging forumlas

    Hi Nick and welcome to the forum,

    Try in A16 this formula and pull it down. See if that works for you.

    ="Database!B" & (ROW()-16)*5 +6
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Help please for deadline.. forumlas!
    By jodieduncan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2013, 02:02 PM
  2. Distance Forumlas how to?
    By Lensmeister in forum Excel General
    Replies: 6
    Last Post: 12-10-2007, 01:20 PM
  3. Forumlas
    By gail2007 in forum Excel General
    Replies: 1
    Last Post: 09-04-2007, 10:17 AM
  4. Forumlas Not Executing
    By Trey in forum Excel General
    Replies: 2
    Last Post: 01-25-2006, 12:10 PM
  5. [SOLVED] How to offset certain cells after dragging down a formula
    By Bram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2005, 12:05 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