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

303
Views
How to get all values from the range of cells? (B3:D5)

I have a range of cells: B3:D5. How can I get all values from this range? - ["B3", "C3", "D3", "B4", "C4", "D4", "B5", "C5", "D5"];

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

0

This is for Reading a Single range

gapi.client.sheets.spreadsheets.values.get({
  spreadsheetId: spreadsheetId,
  range: range
}).then((response) => {
  var result = response.result;
  var numRows = result.values ? result.values.length : 0;
  console.log(`${numRows} rows retrieved.`);
});

This is for Reading Multiple ranges

var ranges = [
  // Range names ...
];
gapi.client.sheets.spreadsheets.values.batchGet({
   spreadsheetId: spreadsheetId,
   ranges: ranges
}).then((response) => {
  var result = response.result;
  console.log(`${result.valueRanges.length} ranges retrieved.`);
});

Read their Documentation : https://developers.google.com/sheets/api/guides/values#javascript

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!