J
J
Julius1232022-03-13 22:16:35
Google Sheets
Julius123, 2022-03-13 22:16:35

How to substitute the date in a cell into a formula?

Hello. There is such a formula

=ПОДСТАВИТЬ(IMPORTXML("https://api.privatbank.ua/p24api/exchange_rates?date=13.03.2022";"//exchangerates/exchangerate[25]/@saleRateNB");".";",";)

You need to substitute the date in the formula from the cell. Tried to do it like this
=ПОДСТАВИТЬ(IMPORTXML("https://api.privatbank.ua/p24api/exchange_rates?date="&ТЕКСТ(A2;"DD/MM/YYYY");"";"//exchangerates/exchangerate[25]/@saleRateNB");".";",";)

But it gives an error. Perhaps someone will suggest the correct option.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2022-03-13
@Julius123

DD/MM/YYYY
try replacing with
DD.MM.YYYY

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question