简体   繁体   English

如何删除excel中列中每个单元格中的第一个字母?

[英]How to remove the first letter in each cell in a column in excel?

I have column in excel like below, 我在excel中有专栏,如下所示,

'04-Feb-01
'04-Mar-01
'08-Apr-01
'06-May-01
'03-Jun-01
'08-Jul-01
'05-Aug-01

I want to remove the character ' in all cells how can i do that? 我想删除角色'中的所有单元格我该怎么办呢?

I already tried with =RIGHT(A1,LEN(A1)-1) this one.. not working 我已经尝试过=RIGHT(A1,LEN(A1)-1)这一个......不行

Convert the text to a date using DATEVALUE. 使用DATEVALUE将文本转换为日期。 Then apply a date format to your liking. 然后根据自己的喜好应用日期格式。

When you enter data into a cell, Excel will try and convert it to the correct type (is it text, a number or a date) The single quote is Excel's way of saying treat what follows as text. 当您在单元格中输入数据时,Excel会尝试将其转换为正确的类型(文本,数字或日期)。单引号是Excel表示将后面的内容视为文本的方式。 It comes in handy when entering things like telephone numbers which Excel might think is a number and would not display leading zeros. 当输入Excel可能认为是数字且不会显示前导零的电话号码时,它会派上用场。 In your the example the actual value in the cell is the text without the single quote, you can check this by copying a cell and then pasting into notepad and there would be no quote in the result. 在您的示例中,单元格中的实际值是没有单引号的文本,您可以通过复制单元格然后粘贴到记事本来检查这一点,结果中没有引号。

Why do you want to remove the quote? 为什么要删除报价? If it is because you want the cells to contain a date rather than text you can convert it using the DATEVALUE function or by using copy and paste special values only . 如果是因为您希望单元格包含日期而不是文本,则可以使用DATEVALUE函数或仅使用复制和粘贴特殊值来转换它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM