apostrophe - what it means for excel

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
Why when i type ' in a cell, then excel hides it, it only show in formula bar?
i know if i do '100 then excel will take this as a text and if i want to show a formula then i type '=sum(1,1)

is that what apostrophe used for?

Thanks alot.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Yes, add apostrophe before anything you entered, it will be recognised as text for Excel. However, there are more use of apostrophe, for example, you have a worksheet named "9 clock", in another worksheet, you simply enter = and select a cell in 9 clock, you will get ='9 clok'!H17, there will be apostrophe around the sheet name.
 
Last edited:
Upvote 0
I want to add something I just found, if a cell has ' then
countblank() will count it as a blank cell and
countif(range,"*") will count it as a cell which has text

do not see contradiction here?
 
Upvote 0
Having just an apostrophe must fall under their definition of formulas that result in blank text. If you check out the info for the function on their website (link below) they state that a formula that returns blank text will also be counted. For example ="" would also result in a result of 1 in a countblank() function.
Countif in your example will capture any cell with text because star (*) character is just a wild.

https://support.office.com/en-us/article/countblank-function-6a92d772-675c-4bee-b346-24af6bd3ac22
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,540
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top