google spreadsheet API v4 - Find value

a 夏天 提交于 2020-01-01 14:55:11

问题


How can i search a google spreadsheet using new api v4.

In the api docs i found find/replace, but it can't find cells, it only replaces cells. So is there any method to find a value in a google spreadsheet other than brute-force method of fetching all data and searching in it?


回答1:


This is a little bit of a kludge, but I create a cell using the API with this formula to search a specified column in a sheet:

=ADDRESS(MATCH("SEARCHSTRING",A1:A999),2)

This does mean I have to make three different calls (write, read, and clear) and it only works on a single column or row, but I find it useful for large spreadsheets.



来源:https://stackoverflow.com/questions/41943500/google-spreadsheet-api-v4-find-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!