arrays/ web-scraping/ google-sheets/ filter/ import

I am currently trying to write a formula in Google Sheets so that it will take the co-sponsors for a NYS and put them into my google sheet. The formula that I wrote is:

=IMPORTXML( https://nyassembly.gov/leg/?term=2021&bn=S01184 , "// [@id='legcontent']/table/tbody/tr[7]/td[2]").

//*[@id='legcontent']/table/tbody/tr[7]/td[2] is the xPath for the data that I am trying to extract which I copied from the HTML on the website.

I am getting the error "Formula Parsing Error", however, I do not see where the error is. It would be much appreciated if anyone could help out!

use:

=INDEX(IMPORTHTML("https://nyassembly.gov/leg/?term=2021&bn=S01184", 
 "table", 1), 7, 2)

在此处输入图片说明

暂无
暂无

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question ImportXML Xpath Google Sheets How to define range in importxml formula in Google Sheets Google Sheets Using Weekday in an Arrayformula Using COUNTIFS in Google Sheets with a possible blank criteria Filtering two columns using Google Sheets Google Sheets Script - using an array for data validation How to IMPORTXML into Google Sheets from site with next-click/load-more pagination Google sheets using Filter and Sort together Automatic CSV output to google sheets using google script Check row by row COUNTIF using ArrayFormula on Google Sheets
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM