+ Reply to Thread
Results 1 to 6 of 6

Trouble with combining MID and VLOOKUP

Hybrid View

  1. #1
    Registered User
    Join Date
    06-14-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    11

    Trouble with combining MID and VLOOKUP

    My supervisor assigned me a project where I essentially compare two lists. We want to develop a formula that will detect differences between two quotes.

    Now this formula [=IF(ISNA(VLOOKUP("*"&MID(D21,2,8)&"*",Email,1,0)),"NOT FOUND","")] works perfectly on the first worksheet, but for some reason it doesn't want to work on the second sheet [=IF(ISNA(VLOOKUP("*"&MID(A7,1,8)&"*",Centre!B18:D45,4,0)),"NOT FOUND","")]. To make things even more perplexing, if I change the MID on the second formula to B7 and reference the product description rather than A7 and reference the SKU, then it starts working as desired.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Trouble with combining MID and VLOOKUP

    Enter formula in F18 and copy down
    Formula: copy to clipboard
    =IF(D18="","",IFERROR(VLOOKUP(SUBSTITUTE(SUBSTITUTE(D18,"[",""),"]",""),Email!$A$7:$A$19,1,0),"Not Found"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    06-14-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    11

    Re: Trouble with combining MID and VLOOKUP

    My bad, what I meant to say is we basically need to see what on the Centre tab is not in the Email tab. So for example, the 332-1286 SKU doesn't appear in the Centre tab, so it needs to say something like "not found" in the Email tab.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Trouble with combining MID and VLOOKUP

    Try pasting this formula into Email!G7:
    Formula: copy to clipboard
    =IF(ISNA(MATCH("*"&MID(A7,1,8)&"*",Centre!D$18:D$45,0)),"NOT FOUND","")
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    06-14-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    11

    Re: Trouble with combining MID and VLOOKUP

    Quote Originally Posted by JeteMc View Post
    Try pasting this formula into Email!G7:
    Formula: copy to clipboard
    =IF(ISNA(MATCH("*"&MID(A7,1,8)&"*",Centre!D$18:D$45,0)),"NOT FOUND","")
    Let me know if you have any questions.
    Thanks, works perfectly. I knew I was close.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Trouble with combining MID and VLOOKUP

    You're Welcome and thank you for the feedback. Please take a moment to select Thread Tools from the menu link above and mark this thread as SOLVED. I hope that you have a blessed day.

+ 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. Trouble Combining Cell Values
    By CCSLBuckles in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2015, 05:51 PM
  2. Trouble combining PRODUCT and IF function in same column
    By heatblocker10 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-22-2014, 12:11 PM
  3. [SOLVED] Trouble combining two formulas into one
    By mr63249 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2013, 08:53 AM
  4. trouble combining LEFT and MATCH
    By jakeopolis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 09:48 AM
  5. Having trouble combining AND and IF
    By hammerb in forum Excel General
    Replies: 2
    Last Post: 10-05-2011, 10:24 AM
  6. Trouble Combining Functions
    By jturenne in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-06-2009, 01:35 PM
  7. Trouble Combining Codes
    By dogsoul in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-19-2009, 02:43 AM

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