+ Reply to Thread
Results 1 to 7 of 7

vlookup to ignore ## in a cell

Hybrid View

Melville vlookup to ignore ## in a cell 08-24-2010, 06:16 AM
romperstomper Re: vlookup to ignore ## in a... 08-24-2010, 06:24 AM
Melville Re: vlookup to ignore ## in a... 08-24-2010, 06:31 AM
romperstomper Re: vlookup to ignore ## in a... 08-24-2010, 06:33 AM
Melville Re: vlookup to ignore ## in a... 08-24-2010, 06:54 AM
romperstomper Re: vlookup to ignore ## in a... 08-24-2010, 07:03 AM
Melville Re: vlookup to ignore ## in a... 08-24-2010, 07:05 AM
  1. #1
    Registered User
    Join Date
    03-26-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    vlookup to ignore ## in a cell

    hi,

    how i can vlookup the below';

    "##gbws-vm111"

    but in the other spreadsheet it states it as: "gbws-vm111"

    I want the vlookup to ignore the ## .

    hows can i do the above.

    thank in advance.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: vlookup to ignore ## in a cell

    Use SUBSTITUTE. Assuming your lookup value is in A1, use:
    =VLOOKUP(SUBSTITUTE(A1,"#",""),lookuprange, column, false)
    Last edited by romperstomper; 08-24-2010 at 06:33 AM. Reason: typo - change . to ,
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    03-26-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: vlookup to ignore ## in a cell

    Basically in spreadsheet 1 i have the following:

    Column A1 = ##gbws-vm111
    column B1 = VLOOKUP......THIS IS WHERE THE FORMULA AND ANSWER WOULD GO---the answer would be from spreadsheet 2 column B = powered on.

    Spreadsheet 2 has the following:

    Column A1 = gbws-vm111
    column B1 = powered on


    I hope im not to confusing. how would i do the above

    thanks again

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: vlookup to ignore ## in a cell

    As I said:
    =VLOOKUP(SUBSTITUTE(A1,"#",""),sheet2!A:B,2,false)

  5. #5
    Registered User
    Join Date
    03-26-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: vlookup to ignore ## in a cell

    that didnt work.

    the lookup is not in sheet 2, its in a new spreadsheet.

    i used the below formula and it doesnt want, the answer is #N/A


    =VLOOKUP(SUBSTITUTE(A1,"#",""),'[199 VDI Kitlist Master (version 1).xls]199 Kitlist VDI VSI'!$A:$C,3,FALSE)

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: vlookup to ignore ## in a cell

    If you get #N/A then the value doesn't match.

  7. #7
    Registered User
    Join Date
    03-26-2010
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    41

    Re: vlookup to ignore ## in a cell

    sorry its worked. my mistake

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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