简体   繁体   English

MS Excel-格式问题

[英]MS Excel - Formatting Issue

In MS Excel 2007 and 2010 I have a database of my sites locations where different locations are differentiated like AUG2345, AUG2346, AUG2347 and so on. 在MS Excel 2007和2010中,我有一个数据库,该数据库包含我的站点位置,其中不同的位置是不同的,例如AUG2345,AUG2346,AUG2347等。 When I enter AUG2345 in excel, it converts it to date immidiately. 当我在excel中输入AUG2345时,它将立即转换为日期。 when i try to format the cell, it converts it to number however I want to keep the data as AUG2345, AUG2346 and so on. 当我尝试格式化单元格时,它将其转换为数字,但是我想将数据保留为AUG2345,AUG2346等。 Please help. 请帮忙。

One way is to use an apostrophe before the data, eg enter 'AUG2345 . 一种方法是在数据前使用撇号,例如输入'AUG2345 The ' doesn't display in the cell itself, it simply tells excel to treat the data as text '不会显示在单元格本身中,它只是告诉excel将数据视为文本

Before pasting, format the cell as Text . 粘贴之前,将单元格设置为Text Then paste. 然后粘贴。

选择自定义格式,并以这种方式告诉Excel,U也可以从此处将其更改为文本或任何其他格式。

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

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