+ Reply to Thread
Results 1 to 6 of 6

search a range for an instance of A, B or VC

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    search a range for an instance of A, B or VC

    In a fault tracking workbook trailer faults are recorded on a worksheet which will give an overview sheet a red tag against its number if there is a fault recorded in the given cell.

    It has been asked wether the details shown on the header of the fault sheet can record the last type and date of service. The source sheet cannot be changed so the cell would be required to search the part of the range I6:N32 relevant to itself and report the type/date. I was thinking of trying first instance of the range to conatin data until I noticed entries are often made after the information I require.

    The attached file shows the source data as sheet1 and the result data as sheet2 with the required cell marked in yellow recording "A 20/01/2011" etc

    Any pointers would be much appreciated. Rgds Nigel
    Attached Files Attached Files
    Last edited by nigelog; 02-15-2011 at 09:02 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: search a range for an instance of A, B or VC

    Not entirely sure I follow but perhaps:

    Please Login or Register  to view this content.
    edit:
    that said I don't understand why you expect A 20/01/2011 for the example ... I would have expected A 02/02/2011 for TR36
    Last edited by DonkeyOte; 02-15-2011 at 07:38 AM.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: search a range for an instance of A, B or VC

    Quote Originally Posted by DonkeyOte View Post
    Not entirely sure I follow but perhaps:

    Please Login or Register  to view this content.
    edit:
    that said I don't understand why you expect A 20/01/2011 for the example ... I would have expected A 02/02/2011 for TR36
    you are correct DonkeyOte that is the date I should have referenced for TR36, my fault

    will try your solution, many thanks

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: search a range for an instance of A, B or VC

    Hi DonkeyOte, your solution is nearly ideal except for instances where as in TR150/TR151where there is an entry stating OK for that period, after the last service data required. The solution would have to only record entries that start in A, B or VC rather than the last text entry in the index lookup

    can the lookup include an IF or a filter to achieve this, many thanks nigel
    Last edited by nigelog; 02-15-2011 at 08:48 AM.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: search a range for an instance of A, B or VC

    Not tested in great depth but perhaps:

    Please Login or Register  to view this content.
    looks worse than it is given the repetition etc..

    the first LOOKUP and CHOOSE acts as an error handler for where no instances exist (eg TR216) - assumes XL2003 (ie pre XL2007 and IFERROR)

  6. #6
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: search a range for an instance of A, B or VC

    I have thrown a few odd entries at it and seems to hold up fine, was wondering how a choose function could be used. Just need to refine for named ranges and incorporate the other 200 trailers

    cheers DonkeyOte, much appreciated. Will mark as solved.

+ 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