+ Reply to Thread
Results 1 to 7 of 7

Using special symbols in nested IF/VLOOKUP problem

  1. #1
    Registered User
    Join Date
    11-02-2013
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2010
    Posts
    9

    Using special symbols in nested IF/VLOOKUP problem

    I am trying to get the following to work, but it's not.

    =IF($C$9="Block","N/A",VLOOKUP($D$8,Dims,IF(and($E$9="Short",$F$9="45°",5,if(and($E$9="Long",$F$9="45°",6,IF(and($E$9="Short",$F$9="90°",7,8))))))))

    it will not accept the degree symbol "°" (alt-0176). Cells E9 & F9 are drop down lists.

  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: Using special symbols in nested IF/VLOOKUP problem

    Try to use it like this

    LEFT($F$9,LEN($F$9)-1)="45"
    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
    11-02-2013
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Using special symbols in nested IF/VLOOKUP problem

    I have never seen or used "LEFT" before. If you don't mind, would you show me how to use it in that string?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Using special symbols in nested IF/VLOOKUP problem

    AlKey looks to be offline right now, so I will fill in.

    LEFT() is 1 of 3 tools used to extract a string from text or number (=LEFT() =MID(), =RIGHT() ). They all work by looking in a cell, and extracting a defined number of characters for a defined length. Their syntax is...

    =LEFT(cell-ref,number of chatcters)
    =LEFT() always starts at the very begining of a cell contents, and returns however many characters you tell it to
    A1 = abcdef =LEFT(A1,3) will give you abc

    =MID(cell-ref, starting number of characters, number of characters)
    =MID() starts at the location you very specify with "starting number of characters", and returns however many characters you tell it to.
    A1 = abcdef =MID(A1,3,3) will give you cde


    =RIGHT() always start at the very end of a cell contents, and returns however many characters you tell it to
    A1 = abcdef =RIGHT(A1,3) will give you def
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    11-02-2013
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Using special symbols in nested IF/VLOOKUP problem

    I just tried it again (below), I am still getting the error msg 'there's a error in your formula'.

    =IF($C$9="Block","N/A",VLOOKUP($D$8,Dims,IF(and($E$9="Short",LEFT($F$9,LEN($F$9)-1)="45",5,if(and($E$9="Long",LEFT($F$9,LEN($F$9)-1)="45",6,IF(and($E$9="Short",LEFT($F$9,LEN($F$9)-1)="90",7,8))))))))

    This is in cell D15, maybe there is something else that's causing the error that I haven't learned yet.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Using special symbols in nested IF/VLOOKUP problem

    see attached does this return the correct result?
    I have added another lookup table to return the column number, have also joined the two cells to give the Long 90°.

    Windy
    Attached Files Attached Files

  7. #7
    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: Using special symbols in nested IF/VLOOKUP problem

    It looks like the problem was with the formula's structure.
    Please see attached file with corrected formula in D15
    Attached Files Attached Files

+ 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. [SOLVED] How to copy special characters and symbols using function and VBA
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2013, 08:04 PM
  2. [SOLVED] Question regarding array formula and special symbols
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2013, 08:44 AM
  3. Replies: 3
    Last Post: 02-01-2013, 08:27 PM
  4. Inserting special symbols
    By Gezza in forum Excel General
    Replies: 1
    Last Post: 06-03-2009, 08:29 PM
  5. Validation on insert of special symbols
    By ballack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2007, 05:13 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