烦人的绿色小三角 【Excel】

Number Stored as Text 
In User Interface, Formatting Cells by Rob van Gelder 

When importing data from external sources you may find that your number values unexpectedly import as text. 

It’s usually obvious when this happens - the numbers are left-aligned. 

The cells may look like a number, but Excel thinks that they are text. 
You’ll find that you can’t perform calculations against “text-numbers”. 

For the picture below, if I used the formula =SUM(A1:A10) then the result would be 0. 

Excel 2002 (Excel XP) made some advances in this area by way of automatic error-checking (aka the Green Triangle). 

You can quickly convert the cell to a proper number by highlighting your list of misbehaving numbers, 

click the exclaimation mark and choose ‘Convert to Number’ from the dropdown. 
 

For those of you running a version of Excel less than 2002, the trick I use goes as follows: 

1. Copy a Blank Cell (or a cell containing the number 0) 
2. Select your list of text-numbers 
3. Choose Paste Special from the Edit menu. 
4. Paste=Values, Operation=Add 

By applying a math operation on the text-numbers, the result is a number! 

Sure beats pressing “F2 Enter” 100 times like I used to.

转载于:https://www.cnblogs.com/godxh/p/3429816.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值