+ Reply to Thread
Results 1 to 5 of 5

How to drag a formula on one vector and reference cells on the perpendicular vector

Hybrid View

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    Boston, MA, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    How to drag a formula on one vector and reference cells on the perpendicular vector

    I am wondering if there is a way to drag a formula, for instance, down, and each cell that I drag down, it references one cell to the right.

    Excel Example.png

    I attached a photo -- I understand that this is an overly simplified example, but the idea is that it would reference the row as you drag down the column.

    Thanks!

    T

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

    Re: How to drag a formula on one vector and reference cells on the perpendicular vector

    hi T, welcome to the forum. 1 way is to use INDEX, MATCH & ROWS. assuming your 1st formula is to be based on B1 & you want all the info in B1:K1, then:
    =INDEX($B$1:$K$1,ROWS(B$1:B1))

    ROWS(B$1:B1) will return you 1. because that's the total rows in that range. if you drag down, it will be ROWS(B$1:B2) & will return you 2. the INDEX will return you the first column of that range, followed by the 2nd, & so on.

    is that what you need?

    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

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

    Re: How to drag a formula on one vector and reference cells on the perpendicular vector

    With these values in B1:K1
    Jan
    Feb
    etc
    Dec

    This regular formula begins the vertical list of those values:
    A3: =INDEX($B$1:$M$1,ROWS($3:3))
    Copy that formula down through A14

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    12-21-2012
    Location
    Boston, MA, USA
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: How to drag a formula on one vector and reference cells on the perpendicular vector

    I guess my question is more - is there a way to set up a hotkey so that when you drag down it pans across, or vice versa?

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

    Re: How to drag a formula on one vector and reference cells on the perpendicular vector

    You could maybe use a macro to do most of what you want. Maybe.

    (Hey, how'bout this weather!)

+ 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