我已经获得了一个优秀的数据库导入功能,它是从Access DB导出的。在excel中有一个column type_class
,在一个excel中它很好(sheet1),但是在另一个excel上,我移到sheet2来执行VLOOKUP
功能,我一眼看不出来是文本列还是数字列。并非所有单元格上都显示左上绿色的东西。但是,使用ISTEXT
函数会导致text
。以下是原始列,没有任何更改或格式以及ISTEXT
结果。
当我在VLOOKUB
函数中使用该列将名称转移到第一张工作表时,只能使用(1010、1101、1102 ...),因此在左上角带有绿色标记的单元格。
I can easly format the key in sheet1 using text-to-columns
, cell formatting, and any other way.
but I cannot change the column in sheet2, I tried:
but only the cell with the green-mark changes to a number, the rest stays the same. I browsed the internet but didn't get a solution either.
Edit: I uploaded what is need to test the case on the drive. you can find it here
Help Appreciated
For your digit strings that you can't convert to text, from the comments it seems there are extra characters in that string not removable by TRIM
or CLEAN
.
A1
B1: =MID($A$1,ROWS($1:1),1)
并填写C1: = UNICODE(B1)
并填写SUBSTITUTE
功能中使用的字符。例如:
从上面我们可以看到,我们需要删除的字符代码是160
。
因此我们使用:
=SUBSTITUTE(A1,CHAR(160),"")
或者,将其一步转换为数字:
=--SUBSTITUTE(A1,CHAR(160),"")
注意如果字符代码> 255,UNICHAR
则CHAR
在SUBSTITUTE
函数中使用代替。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句