Excel - SQLREQUEST - #N/A

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I have a block of cells that contain {=SQL.REQUEST($A$5,,,$A$6)}.

Since I don't know how many records will be returned, I have more rows
than I think would ever be returned that contain this array formula
statement.

The rows below the end of the data contain #N/A.

Is there any method to eliminate the #N/A or the formulae in these
cells?

I'd like for the block of data to contract or expand based on the
number of records returned by the SQLREQUEST funtion. Any ideas?

Thanks, Mark
 
Mark

You can use conditional formatting to hide those NAs. Select the whole
range, say it starts in A1, and choose Format - Conditional Formatting.
Enter Formula Is and =ISERROR(A1), then change the text color to match the
cell color.
 
SQL.Request can't show more then ~8000 cells at once
Try to make an another file with your query results with the SELECT .... INTO copiedTable FROM ..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top