+ Reply to Thread
Results 1 to 3 of 3

Search Database

  1. #1
    Registered User
    Join Date
    11-26-2008
    Location
    Michigan
    Posts
    8

    Search Database

    I have an excel database where I have customers and numbers like this>>>

    CustomerName:JobNumber or sometimes CustomerName:JobName:JobNumber

    example Smith, John:123 or Company Corp:Brown, James:124

    I need a VLOOKUP (or something else) that can search for a number right in that database, without any modifications to it

    I found a way to separate JobNumber from the rest...
    =RIGHT(B34,LEN(B34)-FIND("^^",SUBSTITUTE(B34,":","^^",LEN(B34)
    -LEN(SUBSTITUTE(B34,":","")))))

    but that requires me to modify the database

    example of what I need,
    (Sheet2)
    B1=Smith, John:123 C1=$789

    (Sheet1)
    A1=123

    =VLOOKUP(A1,#CODE#) -- or something else
    yields $789

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Search Database

    try in this format
    =vlookup("*"&A1&"*",B1:C100,2,false)
    Last edited by martindwilson; 04-21-2009 at 11:06 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-26-2008
    Location
    Michigan
    Posts
    8

    Re: Search Database

    that just returns the value of C1, or which ever the first row u choose

+ 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.6.0 RC 1