+ Reply to Thread
Results 1 to 5 of 5

Using VLOOKUP on Nested MID and SEARCH

  1. #1
    Forum Contributor
    Join Date
    05-01-2018
    Location
    Maine
    MS-Off Ver
    2010
    Posts
    114

    Using VLOOKUP on Nested MID and SEARCH

    Hello,

    I have tried to find the answer elsewhere and it seems the issue I am having is regarding the formula outputting as text. I read that the "+0" at the end of something like the MID function will allow Vlookup to use it as a search word but I am not having any luck.

    Here is the nested formula in A2:

    Please Login or Register  to view this content.
    lets say that formula returns "Lime Juice" then the below vlookup formula should be able to use output "Lime Juice" as its lookup:

    Please Login or Register  to view this content.
    Any ideas how to use vlookup to reference the output from the nested MID formula? Any help would be greatly appreciated.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Using VLOOKUP on Nested MID and SEARCH

    If the vlookup isnt working maybe there is an extra "space" at the beginning or end of your lookup you don't see. Try wrapping TRIM() around your Mid function.
    Last edited by dosydos; 06-27-2022 at 02:02 PM.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Using VLOOKUP on Nested MID and SEARCH

    Try

    =VLOOKUP(MID(F2,SEARCH("TEST",F2)+7,FIND("TEST",RIGHT(F2,LEN(F2)-SEARCH("TEST",F2)))-7),Sheet2!B:E,4,0)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Contributor
    Join Date
    05-01-2018
    Location
    Maine
    MS-Off Ver
    2010
    Posts
    114

    Re: Using VLOOKUP on Nested MID and SEARCH

    Thank you, this worked. I didn't even think about a trailing space and assumed it must have been excel changing the format. Thank you for the assistance!

  5. #5
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: Using VLOOKUP on Nested MID and SEARCH

    Glad that worked. Thanks for the rep!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Nested If Function/ Search
    By RBPROD3650 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2017, 12:54 PM
  2. [SOLVED] Nested vlookup or nested IFAND function?
    By jeptik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2017, 02:27 AM
  3. Nested if or search vlookup etc. "Super Complex formula!"
    By samantanori in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2015, 08:27 AM
  4. [SOLVED] simple search function using nested IF and Vlookup statements
    By cherryt in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 08-27-2013, 08:45 AM
  5. Replies: 2
    Last Post: 02-05-2012, 06:47 PM
  6. Vlookup across sheets, nested Vlookup possibly?
    By paid2mkgrlspanic in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 06-09-2009, 05:10 PM
  7. Nested IF(SEARCH)
    By scmllc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-19-2008, 12:42 AM

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