Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9788

How to get value from cell with query and importrange functions in google sheets?

$
0
0

A1 cell has 1. And I try use value from this cell through:

=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/xxxxxxxx/edit?usp=sharing"; "Sheet1!A:P");       "select * where Col1='"&A1&"'"; -1 )

But I can't use information from A1 cell. I have nothing result.But, if I change code Col1='"&A1&"' to Col1=1 it works.

=QUERY(IMPORTRANGE("https://docs.google.com/spreadsheets/d/xxxxxxxx/edit?usp=sharing"; "Sheet1!A:P");       "select * where Col1=1"; -1 )

But I need that query function use value from A1 cell.How to do this?


Viewing all articles
Browse latest Browse all 9788

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>