Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
Google sheets =importxml

So, I have been trying to build a google sheet so that I can track my crypto portfolio. I used =importxml to get the live data from coinmarketcap.com

This is the code, where E28 is the

XPATH:=IMPORTXML("https://coinmarketcap.com/currencies/bitcoin/"; E28)

It's working perfectly since I added a button that when I click it, refreshes the prices.

Here is the problem... The data that is pulled from coinmarketcap is displayed in the cells as text, not as numbers, even though it is in fact numbers. So when I try to use the data to make my profit/loss formula it says "Function ADD parameter 1 waits for numbers, but "$40,488.71" is actually text and it can't be forced as the number"

What can I do? is it possible to turn this text into numbers? so I can use the values in my formulas?

Did I make myself clear? Regards from Brazil!!!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try

=Value(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(IMPORTXML("https://coinmarketcap.com/currencies/bitcoin/";"//div[@class='priceValue ']");"$";"");",";"");".";","))

as you are in Brazil, you have to remove $, remove , and change . by , as decimal separator.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!