+ Reply to Thread
Results 1 to 3 of 3

Vllookup(Text

  1. #1
    Registered User
    Join Date
    02-18-2005
    Posts
    44

    Vllookup(Text

    I am trying to do a vlookup formula that converts my lookup field to text. What is the correct syntax for that?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Can you give samples of what your lookup field may look like?

    Does it have to be converted throught a formula or can it be converted with Excel tools?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517
    Essentially the answer is =VLOOKUP(TEXT(A1,"#"),E1:G18,2)
    where A1 is the value you want to match in cells E1 to E18
    returning the value in the second column of the range E1 to G18
    (ie from cells F1 to F18)
    The text converts the number in cell A1 into a text representation of that number.
    In this case into an INTEGER representation!
    The "#" sets the conversion format in the same way as the custom formats used to set the way cells display the values in them.
    The trouble with this is that you must ensure that the lookup value is EXACTLY identical to the value you are trying to match.
    This means that the format you choose in the TEXT instriction is critical.
    If you could expand your description of your problem we might be able to be more precise in our response.

+ 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