+ Reply to Thread
Results 1 to 7 of 7

why excel ignores ( ' ) at the start of a string

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question why excel ignores ( ' ) at the start of a string

    Hello Everyone,

    I am new to this forum. I have a query. When I insert a value in a cell which starts with ( ' ) excel simply ignores it. Why?

    example: A1 = 'test' then I can see ( ' ) in the formula bar but when I say B1 = left(A1,1) it returns 't' as an answer and I was expecting ( ' ). Why?

    How do I make excel not to ignore ( ' ) ?

    problem.jpg

    Thanks,
    Nirav

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: why excel ignores ( ' ) at the start of a string

    use two single quote ' '

    ''test'

    then
    =left(A1,1)
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    09-18-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: why excel ignores ( ' ) at the start of a string

    Thanks for your prompt reply vlady. But it would be good to know that why does excel do it?

    But I am reading some parameters from simulink model to excel sheet which comes in the format 'name'. After editing a few parameters when I write them back ( ' ) is being missed. If I dont edit any param then it is fine.

    Please refer to the image attached. There column A contains unchanged parameters, B contains changed parameters. As we can see C returns ( ' ) when typed = left(A2,1) whereas D clearly missed ( ' ).

    Many Thanks,
    Nirav

  4. #4
    Registered User
    Join Date
    09-18-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: why excel ignores ( ' ) at the start of a string

    problem_2.png

    Heres the missing image.

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: why excel ignores ( ' ) at the start of a string

    The single quote at the start of a cell is used to force text format so you cannot extract that

    to enable you to have quote is to type two quote that is first quote is to "force" the value to become a text and then second quote display a quote along with that string.


    when you edit them be sure to put two single quotes along..

  6. #6
    Registered User
    Join Date
    09-18-2012
    Location
    Pune, India
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: why excel ignores ( ' ) at the start of a string

    Thanks for making it clear vlady.

    Is there any way we can disable that forcing text format thing?

    Thanks,
    Nirav

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: why excel ignores ( ' ) at the start of a string

    i think no
    if that is not included the value become numerical in nature
    so if you have a value Hello! with out this in excel that would be numbers
    its the way of excel

    this is also found on different kinds of data i.e. alphanumeric/symbols etc.

+ 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