+ Reply to Thread
Results 1 to 6 of 6

drag cells horizontally on sheet 1 and pull data from vertical cells in sheet 2

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    drag cells horizontally on sheet 1 and pull data from vertical cells in sheet 2

    I have a simple task I believe. I need to reference cells horizontally in sheet 1 with cells vertically in sheet 2. The sheet is too big to do by selecting each cell individually.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: drag cells horizontally on sheet 1 and pull data from vertical cells in sheet 2

    Try something like

    =INDEX(Sheet1!$1:$1,ROWS($A$1:$A1))

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: drag cells horizontally on sheet 1 and pull data from vertical cells in sheet 2

    Okay, suppose your cells are in column A in sheet 2 and you want them in row 1 of sheet 1. Put this in A1 of sheet 1:

    =INDEX('sheet 2'!A:A,columns($A:A))

    then copy across.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    11-28-2012
    Location
    canada
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: drag cells horizontally on sheet 1 and pull data from vertical cells in sheet 2

    I have this so far. When I copy across, it just keeps repeating the value in the first cell.

    =INDEX(Sheet2!$A$2:$A$16,COLUMN($A$2:$A$16))

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: drag cells horizontally on sheet 1 and pull data from vertical cells in sheet 2

    I presume you are replying to me. That is not the same formula that I gave you. Use this:

    =INDEX(Sheet2!$A$2:$A$16,COLUMNS($A:A))

    Hope this helps.

    Pete

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: drag cells horizontally on sheet 1 and pull data from vertical cells in sheet 2

    It should be COLUMNS (plural), not COLUMN, the second part of the range should also be relative ($ ommitted for the end column)

    =INDEX(Sheet2!$A$2:$A$16,COLUMNS($A$2:A$2))

+ 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