Excel, convert a number with k 100k to its value 100000

橙三吉。 提交于 2021-02-05 09:31:07

问题


I have an Excel table containing values like this:

3.30k
41.30k
42.31

I would like to get the real numeric value like this:

3300
41300
42.31

Is that possible?

Note the formula bar when i click a cell contains "3k" for example


回答1:


Assuming Column A is not formatted as numbers, try

=IF(ISNUMBER(SEARCH("k",A1)),LEFT(A1,LEN(A1)-1)*IF(RIGHT(A1)="k",1000,1),A1)




回答2:


one more formula option:

=SUBSTITUTE(A1,"k","")*IF(RIGHT(A1)="k",1000,1)

A1 refers to your source cell. Place the above formula in in empty cell and copy down or right to suit your data.

Apparently this is case sensitive, so to cover both cases you could use:

=SUBSTITUTE(SUBSTITUTE(A1,"k",""),"K","")*IF(RIGHT(A1)="k",1000,1)




回答3:


try

=REPLACE(A1,FIND("k",A1),1,"")*1000

Change A1 to suit your cell

Or assuming you may also use m for millions, or no letter if less than 1000

you could use

=IFERROR(IFERROR(REPLACE(A1,FIND("k",A1),1,"")*1000,REPLACE(A1,FIND("m",A1),1,"")*1000000),A1)


来源:https://stackoverflow.com/questions/46405456/excel-convert-a-number-with-k-100k-to-its-value-100000

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!