Google Spreadsheet importXML function -
<xml> <category date="5/21/2012"> <item>14</item> </category> </xml>
in cell a1 have following function:
=importxml("http://www.site.com/file.xml", "//@date")
and loads attribute values of name "date".
now in b1 want load "item" has date in a1. know following wrong idea of trying go:
=importxml("http://www.site.com/file.xml", "//@date["&a&row()&"]/item")
thank in advance.
solution:
=importxml("http://www.site.com/file.xml", "//category[@date='"&indirect("a"&row())&"']/item")
Comments
Post a Comment