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

175
Views
Speed up my Google apps script functions on google sheets

I'm using a google sheet spreadsheet as a database where I can work with some data.

I scrape a website that gives me JSON file and initially with RIGHT,LEFT,LEN I succeeded on extrapolating the exact data I need.

data was similar to this [{"shopdata":"name"},{"shopdata":"price"}] where shopdata was exactly the same so I should've worked a bit.

The Google sheet formula I found to extrapolate this was =VALUE(LEFT(RIGHT($$CELL$$,LEN($$CELL$$)-FIND(",",$$CELL$$)-13),FIND("""",RIGHT($$CELL$$,LEN($$CELL$$)-FIND(",",$$CELL$$)-13))-1)) Probably was wrong but it was doing the job.

Now I'm trying to move everything on Google apps Script to speed up things. Does anyone have any advice? I converted the formula with this function

length = ("\"},{\"shopdata\":\"").length + brand.length -1  
return LEFT(RIGHT(jsonstring,jsonstring.length-jsonstring.indexOf(brand)-length-1),(RIGHT(jsonstring,jsonstring.length-jsonstring.indexOf(brand)-length-1)).indexOf("\"")-1);
}```

I accept any kind of solution: I could treat the object as a JSON object and working it easily, I could do an enormous amount of thing to change how it works.

Now I'm working with about 1500+ data and it's becoming very very slow on simply finishing the function. What can i do?

EDIT:

Alright I provide you with some mock data Mock-Data

Clearly with 5 products I have no issues, but when products start to become 2000+ I have to wait that the Column C, Load every single function instance (In column C theres simply written "LowestNumber(B*)")

Is there a way in GAS to speed up this process?

I thought on treating every data as an huge array, elaborate it on hidden cells (AV, AZ, BA, BB etc) and then using formulas like "Sort" to sort them. But that doesn't eliminate the issue of the very slow loading

about 4 years ago · Juan Pablo Isaza
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!