Skip to content

Instantly share code, notes, and snippets.

@ktaranov
Created November 19, 2021 07:22
Show Gist options
  • Save ktaranov/3ec422174ba7eab6ec9e8d26216499e0 to your computer and use it in GitHub Desktop.
Save ktaranov/3ec422174ba7eab6ec9e8d26216499e0 to your computer and use it in GitHub Desktop.

Google Sheets wiki

Get CBR currency rate on today date

=IMPORTXML("http://www.cbr.ru/scripts/XML_daily.asp?date_req=" & TEXT(today(), "dd.mm.yyyy") & "", "//ValCurs/Valute[CharCode=""USD""]/Value")

Get CBR currency rate on today date using char code from cell

=IMPORTXML("http://www.cbr.ru/scripts/XML_daily.asp?date_req=" & TEXT(today(), "dd.mm.yyyy") & "", "//ValCurs/Valute[CharCode=""" & A1 & """]/Value")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment