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

113
Views
How to search google sheet data only from one column using google apps script webapp?

Im using this below method to search data from a google sheet using google apps scricpt. its working fine but can someone please tell me how to set search function to find data only from one column? for now it`s getting data related to keyword from whole data range. (Not expecting the change data range fix. I need to search keyword only in one column)

Reference site : https://www.bpwebs.com/create-web-forms-to-get-data-from-google-sheets/#index-file

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

0

function searchonecol() {
  const ss = SpreadsheetApp.getActive();
  const sh = ss.getSheetByName('SheetName');
  const sr = 2;//data start row
  const colnum = 1;//column number
  const haystack = sh.getRange(sr,colnum,sh.getLastRow() - sr + 1).getValues();
  haystack.forEach((r,i) => {
    if(r[0] == 'needle') {
      SpreadsheetApp.getUi().alert('you just found the needle in the haystack');
    }
  });
}
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!