V
V
vanad1um32020-01-01 17:06:35
Google Sheets
vanad1um3, 2020-01-01 17:06:35

How to display only the last successful IMPORTXML result and ignore if an error is returned?

Using the IMPORTXML formula, I pull up quotes from a third-party site. Sometimes the result is a number, sometimes it's an error. Is it possible to make formulas, for example, so as to write to the next cell (and periodically update) the result of this IMPORTXML, but only if there is no error? Those. make it so that the result of the last successful request is displayed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2020-01-04
@ProgrammerForever

This is where a script can help. Store the results of queries (date or number + data) in a separate range by the script (determine the last empty line, put data on the timer), and from there take the last one by date without errors using the FILTER () function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question