+ Reply to Thread
Results 1 to 6 of 6

SUBSTITUTE not working in VLOOKUP

  1. #1
    Registered User
    Join Date
    07-19-2015
    Location
    Karachi, Pakistan
    MS-Off Ver
    2007
    Posts
    6

    SUBSTITUTE not working in VLOOKUP

    Problem 1:

    I have a main table tblply. And two sub-tables named tblcm5plypl n tblinch7plypr.

    When i use formula

    =VLOOKUP(F7,"tbl" & SUBSTITUTE(F6," ",""),2)

    in G7, it gives me #value! error.

    Pls help me correct this formula for various selections.

    Problem 2:

    The formula =CELL("contents",B2) gives CM5PLYPL under normal circumstances. But when same used in table header, gives 0. Why?

    Sample file attached.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: SUBSTITUTE not working in VLOOKUP

    Do you really need all those messy tables?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: SUBSTITUTE not working in VLOOKUP

    If not (and I strongly suggest you dump them all), try this:
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: SUBSTITUTE not working in VLOOKUP

    =VLOOKUP(F7,INDIRECT("tbl" & SUBSTITUTE(F6," ","")),2,0)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    07-19-2015
    Location
    Karachi, Pakistan
    MS-Off Ver
    2007
    Posts
    6

    Re: SUBSTITUTE not working in VLOOKUP

    U didn't got my point. All these tables refer to various ply n their respective rates except for the first table.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: SUBSTITUTE not working in VLOOKUP

    I think that nflsales has given you what you need, though...

+ 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. Substitute in a vlookup
    By cbh35711 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2015, 09:59 AM
  2. [SOLVED] Substitute for VLOOKUP with “1” or True?
    By artistdedigital in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-08-2014, 08:41 PM
  3. [SOLVED] Indirect Validation after using SUBSTITUTE on a Dynamic Name Range NOT WORKING
    By Jason Eric in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-03-2013, 04:26 AM
  4. IF function working with LEN and Substitute
    By cd109 in forum Excel General
    Replies: 6
    Last Post: 04-13-2012, 05:29 AM
  5. VLookup Substitute
    By RM1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2011, 04:03 PM
  6. Substitute code partly working
    By drewship in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2010, 04:54 PM
  7. VLookup Substitute
    By sabunabu in forum Excel General
    Replies: 5
    Last Post: 03-27-2008, 07:47 PM

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