+ Reply to Thread
Results 1 to 6 of 6

How to use Mid function in vlookup

  1. #1
    Registered User
    Join Date
    08-17-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007
    Posts
    61

    Thumbs up How to use Mid function in vlookup

    Hi,
    Need help in using the Mid function in Vlookup. I want to get the mid of the value which i get using vlookup.

    Example: if my Vlookup gives the value as "GSC 03-Parts & Service Systems-GSMS-Test " i want to use the mid function to get the a new value as 03

    i'm using the below code but not helping me

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by raghunaik; 09-10-2009 at 12:12 AM.

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

    Re: How to use Mid function in vlookup

    almost, but though you've specified starting point for MID (5) you've specified no. of chars to look at from then on as 0 (final parameter in your formula) and by the looks of it you want to use 2 (ie return 2 chars starting from position 5 in the string).

  3. #3
    Forum Contributor
    Join Date
    03-28-2008
    Location
    India, bangalore
    MS-Off Ver
    Excel 2003,2007
    Posts
    216

    Re: How to use Mid function in vlookup

    =MID(VLOOKUP(A3,Sheet1!$A$2:$B$6,2,0),5,2)

  4. #4
    Registered User
    Join Date
    08-17-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: How to use Mid function in vlookup

    Thanks for the replies :-)

  5. #5
    Registered User
    Join Date
    01-04-2014
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: How to use Mid function in vlookup

    Quote Originally Posted by aravindhan_31 View Post
    =MID(VLOOKUP(A3,Sheet1!$A$2:$B$6,2,0),5,2)
    hi, how if i want to return the value after the "-"?
    Isaac Koh

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to use Mid function in vlookup

    isaac...
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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