I think you can do this with Power Query. In the Spot file, Convert the UTC Date Time to US with the Date separated from the Time. ie. Split the columns. Here is the Mcode to do that.
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
ChangedTypeToText = Table.TransformColumnTypes(Source,{{"Date(UTC)", type text}}),
SplitColumnbyDelimiter = Table.SplitColumn(ChangedTypeToText, "Date(UTC)", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, false), {"Date(UTC).1", "Date(UTC).2"}),
ChangedTimeColumnFormat = Table.TransformColumnTypes(SplitColumnbyDelimiter,{{"Date(UTC).2", type time}}),
SplitColumnbyDelimiter1 = Table.SplitColumn(ChangedTimeColumnFormat, "Date(UTC).1", Splitter.SplitTextByDelimiter("/", QuoteStyle.Csv), {"Date(UTC).1.1", "Date(UTC).1.2", "Date(UTC).1.3"}),
MergedColumns = Table.CombineColumns(SplitColumnbyDelimiter1,{"Date(UTC).1.2", "Date(UTC).1.1", "Date(UTC).1.3"},Combiner.CombineTextByDelimiter("/", QuoteStyle.None),"M/D/Y"),
ChangedTypeToDate = Table.TransformColumnTypes(MergedColumns,{{"M/D/Y", type date}}),
RenamedColumns = Table.RenameColumns(ChangedTypeToDate,{{"Date(UTC).2", "Time"}}),
SortedRows = Table.Sort(RenamedColumns,{{"M/D/Y", Order.Ascending}})
in
SortedRows
In the BNBUSD file, split the time from the Date and then delete all columns except closing price column and time and date. I assumed you wanted the closing price for that time and date. If not, change the columns to delete so match your needs.
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Split Column by Delimiter" = Table.SplitColumn(Table.TransformColumnTypes(Source, {{"Open time", type text}}, "en-US"), "Open time", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, false), {"Open time.1", "Open time.2"}),
#"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Open time.1", type date}, {"Open time.2", type time}}),
#"Removed Other Columns" = Table.SelectColumns(#"Changed Type",{"Open time.1", "Open time.2", "Close"})
in
#"Removed Other Columns"
Close and Load each query.
In a new file, load each of the queries into the PQ editor and do a full outer join of the two queries (in PQ speak, this is a merge). Highlight the dates and times in each query as the common field to join on. The end result should give you the exchange rate for that time and date. This last merge, I did not test as you did not provide exchange rates for 2020 in the file I was able to download.
I hope this is what you are looking for.
Bookmarks