+ Reply to Thread
Results 1 to 3 of 3

I need a formula to return a column of data from sheet1 into sheet 2

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    NC,USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question I need a formula to return a column of data from sheet1 into sheet 2

    I need a formula to pull a column of data from sheet 1 to sheet 2 when a certain text is entered into a cell.
    If b2 on sheet 2 = "AA" i would like A2:10 to return the information from sheet 1 A2:10 and if "BB" then A2:10 then return sheet 1 B2:10 and so forth. I will need to be able to return data from at least ten different columns on sheet 1 but only one at a time.
    Ant help would be greatly appreciated and thank you in advance

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: I need a formula to return a column of data from sheet1 into sheet 2

    Hi DustOfTheEarth and welcome to the forum

    If you can give each of the columns on sheet1 the same heading as you want to use (AA, BB etc), then you can use this on sheet2, copied down...

    =INDEX(Sheet1!$A$1:$D$11,ROW(Sheet1!A2),MATCH($B$2,Sheet1!$A$1:$D$1,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    NC,USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Red face Re: I need a formula to return a column of data from sheet1 into sheet 2

    Quote Originally Posted by FDibbins View Post
    Hi DustOfTheEarth and welcome to the forum

    If you can give each of the columns on sheet1 the same heading as you want to use (AA, BB etc), then you can use this on sheet2, copied down...

    =INDEX(Sheet1!$A$1:$D$11,ROW(Sheet1!A2),MATCH($B$2,Sheet1!$A$1:$D$1,0))
    Thank you so VERY MUCH!!!
    It worked perfectly!

+ 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