+ Reply to Thread
Results 1 to 4 of 4

Substitute in a vlookup

  1. #1
    Forum Contributor
    Join Date
    01-09-2006
    Posts
    109

    Question Substitute in a vlookup

    Hello all,

    I'm trying to use a Substitute function in a Vlookup. The idea is to remove the dashes in the cell I’m looking at before it performs the Vlookup.

    Sadly, the formula keeps returning the not found value. I've attached a file that hopefully illustrates my problem.


    Thanks for the help,

    Chris
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-18-2008
    Location
    India
    Posts
    68

    Substitute in a vlookup

    Hi,

    Substitute function returns text.
    Modify the formula to :

    =IF(ISERROR(VLOOKUP(VALUE(SUBSTITUTE(D2,"-","")),A2:B13,2,FALSE)),"Not working arg",VLOOKUP(VALUE(SUBSTITUTE(D2,"-","")),A2:B13,2,FALSE))

  3. #3
    Forum Contributor
    Join Date
    01-09-2006
    Posts
    109
    Perfect!

    Thanks Rubeus_Hagrid,

    Chris

  4. #4
    Registered User
    Join Date
    01-25-2013
    Location
    BP
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Substitute in a vlookup

    Hello people,

    i would like to make formula or VBA formula to change every character with his parallel character.
    for ex:

    if I have table
    A B
    ž z
    š s
    ć c
    č c

    and in C1 have tekst "šećer hoće voće"

    I woul like to have in D1 "secer hoce voce"

    any idea?

+ 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. vlookup in multiple worksheets
    By gto65l in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2011, 01:04 PM
  2. Vlookup using two columns-needs to match the first two column
    By pduubb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2008, 01:21 PM
  3. VLookup Substitute
    By sabunabu in forum Excel General
    Replies: 5
    Last Post: 03-27-2008, 07:47 PM
  4. presenting array lists returned by VLOOKUP in one cell
    By twelsh37 in forum Excel General
    Replies: 2
    Last Post: 12-05-2007, 01:45 PM
  5. vlookup on a dynamic # of rows
    By shadestreet in forum Excel General
    Replies: 4
    Last Post: 05-02-2007, 01:02 PM

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