+ Reply to Thread
Results 1 to 6 of 6

Dragging vertical column cells horizontally without changing the letter

  1. #1
    Registered User
    Join Date
    01-25-2012
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    8

    Dragging vertical column cells horizontally without changing the letter

    i know this is possible through the indirect function but im not too savvy with this function.
    trying to take for example the value in cell A1 in sheet 1 and hard link to another tab in the same sheet = cell A1. Then drag this hard linked cell across horizontally (trying to pick up the vertical chain i.e. A1, A2, A3 ect. but the letter changes when I drag to A1, B2, C3 ect.
    Is there an easy way to lock the row?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dragging vertical column cells horizontally without changing the letter

    try
    =INDEX(Sheet2!$A:$A,COLUMN(A1))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    01-25-2012
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Dragging vertical column cells horizontally without changing the letter

    not really following.... see the attached spreadsheet. in sheet 2 i hardlinked 1 cell and dragged horizontally trying to capture the verical values in sheet 1
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dragging vertical column cells horizontally without changing the letter

    =INDEX(Sheet1!$A:$A,COLUMN(D1))

  5. #5
    Registered User
    Join Date
    01-25-2012
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Dragging vertical column cells horizontally without changing the letter

    awesome!! this works.. many thanks. last question can you combine arrays if the data is in more than 1 row?

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dragging vertical column cells horizontally without changing the letter

    for 2 columns of numbers starting a3 and b3
    =IF(COLUMN(D1)-4<COUNT(Sheet1!$A$3:$A$500),INDEX(Sheet1!$A:$A,COLUMN(D1)),INDEX(Sheet1!$B:$B,COLUMN(D1)-COUNT(Sheet1!$A$3:$A$500)))

+ 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