Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As described in the title, is 'ABCD always exactly the same as ="ABCD" in a cell? It says that all the characters after the beginning apostrophe will be treated as string, so does that essentially equal ="ABCD"?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Yes it is , I tried the setup
A1 - 'ABCD
A2 - ="ABCD"

A3 - =AND(A1=A2) which gives the output TRUE

A4 - =AND(EXACT(A1,A2))gives the output TRUE
So it appears they are equivalent to each other

share|improve this answer
    
Thanks! So 'ABCD is the syntactic sugar of ="ABCD". –  Lei Zhao Jul 16 '13 at 9:35

Yes

' means format as text
="ABCD" sets the cell equal to the text ABCD
So, testing for one equal to the other returns True

Excel demo of equality

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.