+ Reply to Thread
Results 1 to 3 of 3

Thread: Search and (VLookup)

  1. #1
    Registered User
    Join Date
    12-18-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Search and (VLookup)

    Hi guys,

    I have a spreadsheet where i have a column caller "Serial Number" (H1) which is full of serial numbers of mixed characters and lengths (EG: S09UJ10Y854297, 9RW3C95P). I am trying to make a function that will:

    1) Allow me to input a serial number into a separate cell, which will then search the "Serial Number" column.
    2) When it finds a match, it will then insert the serial number into a cell in the same row but different column.

    So far I have =IF((VLOOKUP($Q$2,H:I,1,FALSE)),P2=H2)

    Any help will be greatly appreciated.

    Thanks

  2. #2
    Forum Guru mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2007/2010
    Posts
    3,004

    Re: Search and (VLookup)

    Please have a look at the attached.

    I've used a dynamic range to drive a (yellow) drop down list and an event driven macro to add the copies to the other column.

    You will find the code on the sheet1 stab in the VBA editor (Alt F11).
    Attached Files Attached Files
    Martin

    Eighty Twenty Spreadsheet Automation http://homepage.ntlworld.com/martin.rice1/ for all your Excel customisation and consulting needs.

    If my solution has saved you time and/or money, please consider donating to Cancer Research UK.

  3. #3
    Forum Contributor
    Join Date
    06-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    117

    Re: Search and (VLookup)

    Say you are entering the serial number in Q2 and your column with serial numbers is column H.
    If you want the vlookup match to appear in any cell in row 2 (which you then can copy down for Q3, Q4 etc)

    =VLOOKUP(Q2,$H:$H,1,FALSE)
    If I understood your needs correctly, this therefore would not require a macro or other complex solution.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0