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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -