title: Google Sheets and ImportXML - Narrowing Results
body: <p>I am trying to import my main image from my product page:</p>
  
  <p>When using ImportXML in Google sheets, is there a way to limit the number of results returned from the query?</p>
  
  <p>For example, I am using a formula that returns 3 results: </p>
  
  <pre><code>=IMPORTXML($B$1,"//img[@id='product-preview'][1]/@src[1]")
  </code></pre>
  
  <p>The result is:</p>
  
  <pre><code>/productmedia/na-media/media-manager-thumbnails/filer_public_thumbnails/app-images/thumbs540/__540x540_car-vent-clip-silo.jpg?v3.16.5-na
  
  /productmedia/na-media/media-manager-thumbnails/filer_public_thumbnails/app-images/thumbs540/__540x540_403720-car-vent-clip-enviro.jpg?v3.16.5-na
  
  /productmedia/na-media/media-manager-thumbnails/filer_public_thumbnails/app-images/thumbs100/__100x100_car-vent-clip-silo.jpg?v3.16.5-na
  </code></pre>
  
  <p>I only need the first result, can this be done inside the initial formula?</p>
  
  <p>I tried specifying the image using its class name, but I keep getting the error "imported content is empty"</p>
  
  <p>Here is the url from which I am importing for reference: <a href="https://shopus.norwex.biz/en_US/customer/shop/product-detail/517210?categoryName=all" rel="nofollow noreferrer">https://shopus.norwex.biz/en_US/customer/shop/product-detail/517210?categoryName=all</a></p>