+ Reply to Thread
Results 1 to 6 of 6

Dragging formulas

  1. #1
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Dragging formulas

    Hi all,

    What I want to do is drag a formula down a column that relates to a row of data on another spreadsheet.

    For example, my spreadsheet is attached. I want to go to the tab called Chatham Gen Haul and put a formula in cell G8, I have simply done this:

    ='Vehicles by Type MPG'!D8

    This relates to the tab Vehicles by Type MPG

    So, after entering this formula I drag it down the column in the spreadsheet but what I want it to do is as I drag it down the formula would do something like this:

    Say in cell G9:
    ='Vehicles by Type MPG'!E8

    In cell G10
    ='Vehicles by Type MPG'!F8

    But it's not doing it, any idea where I'm going wrong?

    Thanks,
    Lewis
    Attached Files Attached Files

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

    Re: Dragging formulas

    Try this in G8 and filled down.

    =OFFSET('Vehicles by Type MPG'!$D$8,0,ROWS(A$1:A1)-1)


    Don't change the A$1:A1 reference, it's not related to your data.

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

    Re: Dragging formulas

    Or this would be even simpler.

    =LOOKUP($D8,'Vehicles by Type MPG'!$D$7:$BC$8)

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Dragging formulas

    Using your posted workbook
    this formula, copied down, returns the values from the referenced horizontal range
    Please Login or Register  to view this content.
    Note: That works on your worksheet because you have the Week# (from 1 through 52) to reference
    If you did not have that range, then you'd need something like this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Forum Contributor
    Join Date
    03-24-2010
    Location
    North West UK
    MS-Off Ver
    2013
    Posts
    112

    Re: Dragging formulas

    Works great, thank you

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

    Re: Dragging formulas

    You're welcome.

    Ignore my first suggestion, it's very inefficient. Given that you have index numbers already present on both sheets that can be used.
    The other 2 suggestions are much better.

+ 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] Dragging Formulas Down
    By hftechno in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2014, 02:01 AM
  2. [SOLVED] Dragging Down Formulas
    By mphillips in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-03-2014, 02:00 PM
  3. Excel 2007 : Dragging formulas down
    By mkmed in forum Excel General
    Replies: 8
    Last Post: 06-15-2010, 12:33 PM
  4. Dragging formulas
    By gevo12321 in forum Excel General
    Replies: 3
    Last Post: 01-29-2010, 08:53 PM
  5. Dragging formulas
    By Thawk in forum Excel General
    Replies: 5
    Last Post: 02-11-2009, 04:29 PM
  6. Dragging Formulas
    By J.D. Webster in forum Excel General
    Replies: 1
    Last Post: 02-06-2006, 05:35 PM
  7. [SOLVED] dragging formulas
    By rmarks in forum Excel General
    Replies: 5
    Last Post: 11-18-2005, 07:44 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