Google Sheet importxml - How to retrieve only the 1st value? -


=iferror(importxml(b1, "//title/text()"),a1) 

i'm using google script input above c1 , fill down.

it works fine when there 1 title in each result, returns error when there more 1 :

error array result not expanded because overwrite data in c2

how can limit result first title tag found, or (probably better) modify iferror handle array 'error'?

      =iferror(importxml(b1, "(//title/text())[1]"),a1) 

or

     =array_constrain(iferror(importxml(b1, "//title/text()"),a1),1,1) 

mark answer, if solves problem.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -