简体   繁体   中英

How can I remove $ from imported html

I'm using the following code.

=(index(IMPORTHTML(concat("https://coinmarketcap.com/currencies/","bitcoin"),"table",1),1,2))

I would like to multiply with the number, however, I can't do that since it is treated as text.

Does any have any clue how I can remove the $ ?

use:

=INDEX(REGEXREPLACE(IMPORTHTML(
 "https://coinmarketcap.com/currencies/"&"bitcoin", 
 "table", 1), "[\$,]", )*1, 1, 2)

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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