Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Vlookup

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Location
    California
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Is there a way to lookup a 4 digit number and from the table the lookup will find the 4 digit number and count over 3 and that number is 4 digits but I only want the first three digits of that number

    Vlookup(a1,range,3,false)

    the 3 (column index number)is the question when it counts over three to pull that number its 4 digits but I want the first three only
    Thanks!

  2. #2
    MrExcel MVP Al Chara's Avatar
    Join Date
    Feb 2002
    Location
    Newark, Delaware
    Posts
    1,701
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try the following:

    =LEFT(VLOOKUP(A1,A:D,4),3)

    Where A:D is your range.
    Best regards,
    Allan Chara
    http://www.mrspreadsheets.com

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,657
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-16 15:00, lars wrote:
    Is there a way to lookup a 4 digit number and from the table the lookup will find the 4 digit number and count over 3 and that number is 4 digits but I only want the first three digits of that number

    Vlookup(a1,range,3,false)

    the 3 (column index number)is the question when it counts over three to pull that number its 4 digits but I want the first three only
    Thanks!
    Couldn't follow. Maybe you can give an example.

  4. #4
    Board Regular
    Join Date
    Mar 2002
    Location
    California
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    here is the number I'm looking up

    7218

    when it finds 7218 in the table it will count over three then pull that number. The number it pulls is YVR1 for example I want just YVR to be pulled

    Hope that makes sense

  5. #5
    Board Regular
    Join Date
    Mar 2002
    Location
    California
    Posts
    105
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    it worked thanks AL

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •