问题
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