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

187
Views
Convert cell from text to value

I extrapolated a file in extension .xlsx
and I import in Google Sheets
but the value is in text format but I need in value format
How could I change the format with a script ?

value in text format ( I know because if i do =isnumber() the result is "false" )

i do this

for (var y=0; y< lastRow ; y++){
    Cronistoria.getRange(y,21);
    Cronistoria.getCurrentCell(y,21).setFormula('=value()');

there are a word for example "parseInt"? or other?

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

0

Google Apps Script uses JavaScript as programming language.

  • A Google Sheets "text", in JavaScript is a string.
  • A Google Sheets "value", in JavaScript is a number.

In JavaScript, to convert a string into a number you could use Number, i.e. Number('1.3') returns 1.3, parseInt('1.3') returns 1.

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!