+ Reply to Thread
Results 1 to 17 of 17

Same value but shows False

  1. #1
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Same value but shows False

    I cant understand why the same value is showing False instead of True in the attached sheet. How can I understand that this two value is different? Can anyone help?
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Same value but shows False

    change the font to say Ariel or courier you'll see an additional character at the end of a3 char(63)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Same value but shows False

    Hmm?

    I can't get that to work Martin ...

    Char(63) should be ?, but SUBSTITUTE() doesn't remove it ...

    Is it possible that the OPs' version of Excel has non-standard (or corrupted) fonts loaded, I noticed "ARIAL" in upper case in the Standard toolbar?

    Even more confusing
    Please Login or Register  to view this content.
    returns 6 characters, Iwould expect 5, no?

    Have a look at this, if you have a moment to spare, it's got me beat.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Same value but shows False

    this is what i see but i do agree it must be another code set, my standard font is arial maybe it doesnt try to change it
    Attached Images Attached Images

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Same value but shows False

    @ Martin
    I also use Arial as my standard font, but I can't see the symbol!
    I can't find that symbol "" in my Excel.
    I suspect that the OP has copied the data from the Internet.

    When Excel finds a character it dosn't recognise, CODE() returns 63, which is "?"

    I've seen this behavior before with sheets that use specialised Indian/Pakistani fonts, but what this one means or does, I don't know.

    I've added some similar symbols, I copied from the net, to this workbook to illustrate the point.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Same value but shows False

    Actually what I want to know is that is there any way to recognize easily that this two value is different though looks alike? Why I find such problem frequently? How it is created? Why it looks same if it is different?

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Same value but shows False

    it doesnt look the same and isnt the same ,did you look at the image, different fonts may or may not show the character but it is still there,
    where did you get the data from.

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Same value but shows False

    That's the point I am making, there isn't an obvious robust answer that I can see, unless you can find out exactly what the invisible symbol is.

    Try this for example in this workbook
    1/. In M2
    Please Login or Register  to view this content.
    Drag/Fill Down

    2/. IF you can find out exactly what the symbol is then put it in F8:F9
    This is a way of doing that
    In F8
    Please Login or Register  to view this content.
    Copy and Paste Special > Values to F9

    See the other formulae (Yellow Cells), for some more alternatives.




    See this workbook
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Same value but shows False

    Thx. Your image is showing extra character. How you made it visible. Will plz explain?

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Same value but shows False

    It's Unicode character 200E.

    Change the format of the column to General, select A3, press Backspace, then Enter.
    Last edited by shg; 06-30-2012 at 01:19 PM.
    Entia non sunt multiplicanda sine necessitate

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Same value but shows False

    @sumonrezadu change the font to something that makes it visible,you have plenty to choose from
    here is a roundabout way of cleaning it uses an udf to convert what shg has identified to something that can be replaced
    im sure there is a more straightforward vba approach
    Attached Files Attached Files

  12. #12
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Same value but shows False

    How did you find that shg?

    I opened the Symbols dialogue then
    Font: (normal text)
    Subset: General Punctuation
    Character Code: 200E from: Unicode(hex)

    It names the character - LEFT-TO-RIGHT MARK, but the highlighted cell is blank!
    Not surprisinly I missed it when I manually trawled through the full set earlier.

    Here's the blighter
    Please Login or Register  to view this content.
    How do you get the code from that?

    [EDIT]
    VBa ChrW() seems to be the answer, is there a native equivalent?
    Last edited by Marcol; 06-30-2012 at 01:49 PM.

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Same value but shows False

    i think he just learnt them all,along with us state flowers,world capital cities ect

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Same value but shows False

    I use an add-in I wrote several years ago. It's posted at http://www.excelforum.com/excel-prog...-a-number.html

    EDIT: Not an add-in, sorry, it's a userform. Unzip and drag it into Personal (or a workbook) and assign a shortcut.
    Last edited by shg; 06-30-2012 at 01:48 PM.

  15. #15
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Same value but shows False

    Thanks guys found out quite a bit here!

    In a last ditch effort to defend native formula, an endangered species here.

    Here's the non-VBa offering. (2 ways)

    The pub beacons ... ... is that the time? and it's Saturday!... I'm outa here ...
    Attached Files Attached Files

  16. #16
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Same value but shows False

    maybe
    =IF(ISNUMBER(A2+0),A2,--SUBSTITUTE(A2,RIGHT(A2),""))

  17. #17
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Thumbs up Re: Same value but shows False

    Great job. Thx all for making me understand the whole matter.

+ 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