+ Reply to Thread
Results 1 to 4 of 4

Issues with vlookup with mid function output

  1. #1
    Registered User
    Join Date
    02-27-2020
    Location
    Dallas
    MS-Off Ver
    Excel
    Posts
    3

    Issues with vlookup with mid function output

    I am having issues using the vlookup function with the output of a "mid" function embedded in it as the lookup value.

    Formula is =vlookup(mid(cell,#,#),lookup array,2,false)

    I know the mid formula is working correctly, but the vlookup isnt treating the mid function output as a number so it returns a #N/A result.

    The formula I am trying to use is highlighted in column C of the attached workbook.

    Please help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Issues with vlookup with mid function output

    The LEFT function treats numbers (digits) as Text.

    Use this in C3 to convert to value, and drag down:

    =VLOOKUP(VALUE(MID(B3,8,5)),P3:Q125,2,0)

  3. #3
    Registered User
    Join Date
    02-27-2020
    Location
    Dallas
    MS-Off Ver
    Excel
    Posts
    3

    Re: Issues with vlookup with mid function output

    This is perfect! Thank you

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Issues with vlookup with mid function output

    You're welcome.
    If your problem is solved, go to Thread Tools and select Mark This Thread Solved

+ 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. Conflicting Function Issues: (lesser or equal function)
    By hdjc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2019, 05:17 AM
  2. [SOLVED] Getting wrong output vlookup & left function
    By mso3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-28-2016, 11:35 AM
  3. [SOLVED] how to output multiple results of a single function by running the function only once
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-14-2016, 07:24 PM
  4. Replies: 8
    Last Post: 06-02-2016, 03:00 AM
  5. [SOLVED] Combined AND function not reading output of the function of another cell
    By Duoae in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2012, 09:22 AM
  6. Issues with output code
    By Samsungg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2012, 11:12 PM
  7. Issues with Vlookup function
    By osborn in forum Excel General
    Replies: 2
    Last Post: 11-01-2010, 09:05 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