+ Reply to Thread
Results 1 to 2 of 2

Search 6 tabs for string & pull in date that is 2 columns over from string into MasterTab

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Search 6 tabs for string & pull in date that is 2 columns over from string into MasterTab

    I have 6 tabs full of test data
    The test data on each tab is in the A5:DU150 cell range
    but the test data is not in the same order on each tab

    I'd like to search for the string I've entered in column A on the master tab (ie "G-1") on the other tabs and then put the date that is 2 columns to the right of the string on my master sheet and if there isn't a date put the word open.

    Example Master (idea of what it will look like when complete)

    Test pt date1 date2 date3 date4 date5 date6
    G-1 1/1/12 2/1/12 4/1/12 3/3/12 open 9/4/12
    ...
    G-720


    tab1 might have G-1 in A5 with the date in C5
    but tab2 might have G-1 in DP30 with the date in DR30
    & tab3 might have G-1 in AJ50 with the date in AL50

    If the G-1 were in the same cell in each tab it would be easy but they aren't
    I've tried using MATCH & LOOKUP to find the cell that contains G-1 but I keep getting errors.
    I know there has to be a simple way to do this.

    Thanks for any help/direction

  2. #2
    Registered User
    Join Date
    09-19-2012
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Search 6 tabs for string & pull in date that is 2 columns over from string into Master

    Hi all,

    I got some help at work and now have a VBA function that will do this for me.

    For those who have a similar problem, here is the function

    Please Login or Register  to view this content.
    Then in my master sheet


    Sheet2 Sheet3
    red 08/25/09 08/25/09
    blue 10/12/09 10/12/09
    green 07/10/09 07/10/09
    purple 07/19/09 open
    orange 09/22/09 09/22/09


    where "Sheet2" is the name of the tab where my raw data is
    and then "8/25/09" has a formula in the cell =GetTestDate(B$2,$A3)
    B$2 = Sheet2
    $A3 = red

    Thanks to all who looked and helped!!!!
    Last edited by Cutter; 09-20-2012 at 07:22 PM. Reason: Added code tags

+ 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