+ Reply to Thread
Results 1 to 7 of 7

text argument in vlook up which has a ""

  1. #1
    Registered User
    Join Date
    08-02-2005
    Posts
    15

    text argument in vlook up which has a ""

    Hi to every body!

    Im loking in a vertical look for a buff "N" the problem is that you can not write a quotation marks(") in an argument simply like that, con in the example below what the program is interpreting the quotation after buff as the end of the string and is specting next a coma instead of an N.

    So the cuestion is I have to look in a column for a word that contents quoutations what do i have to write to look for this argument BUFF "N"




    =VLOOKUP(" buff "N" ",'[Production Report.xls]1'!$A$1:$J$85,8,FALSE)


    Thanlks in advance!!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Try this:

    =VLOOKUP(" buff "&Char(34)&"N"&Char(34)&" ",'[Production Report.xls]1'!$A$1:$J$85,8,FALSE)


    Note: Char(34) is a quotation mark.

    Does that help?

    Ron

  3. #3
    Forum Contributor
    Join Date
    08-02-2005
    Posts
    102
    Carlos

    Have you tried using single quotes around the N (are they really neccessary anyway?)

    =vlookup(" Buff 'N' ", etc

    Cheers

  4. #4
    Registered User
    Join Date
    08-02-2005
    Posts
    15

    thanks Ron

    but it doesnt work i dont know why it does accept the argument but doesnt get the expected number

    Quote Originally Posted by Ron Coderre
    Try this:

    =VLOOKUP(" buff "&Char(34)&"N"&Char(34)&" ",'[Production Report.xls]1'!$A$1:$J$85,8,FALSE)


    Note: Char(34) is a quotation mark.

    Does that help?

    Ron

  5. #5
    Registered User
    Join Date
    08-02-2005
    Posts
    15
    I cannot since Im reading from a data bade ans I can nor modiffy the names of the products, but thanks for the help
    Carlos

    Quote Originally Posted by Jon Quixley
    Carlos

    Have you tried using single quotes around the N (are they really neccessary anyway?)

    =vlookup(" Buff 'N' ", etc

    Cheers

  6. #6
    Forum Contributor
    Join Date
    08-02-2005
    Posts
    102
    Carlos,

    OK, plan B

    Try setting up a spreadsheet that has the B column containing the Buff "N" title and the value of this in the next column (C) - this is your database output. In the first column to the left of these, set an alternative to Buff "N" as I suggested in the previous note:

    Col A ColB Col C ColD ColE
    Buff 'N' Buff "N" 15 Buff 'N' + vlookup(d1,a1:c1,2)

    This will return the value of column B, in this case Buff "N" complete with double quote marks.

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    When you use this:

    =VLOOKUP(" buff "&Char(34)&"N"&Char(34)&" ",'[Production Report.xls]1'!$A$1:$J$85,8,FALSE)

    what incorrect value is returned? Without some details it's difficult to isolate the problem.

    Regards,
    Ron

+ 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