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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -