Oliver Nicholls
Oliver Nicholls

Reputation: 318

Google sheets, get a single value from a function that returns a table

I'm trying to use =GOOGLEFINANCE("CURRENCY:"&"USD"&"GBP", "price",TODAY()-1) to output just the exchange rate yesterday.

It currently outputs four cells like this

Date Close
31/01/2021 23:58:00 0.73002

I basically just want the 0.73002 value from this.

Is there a way to do this?

Upvotes: 2

Views: 692

Answers (1)

Marios
Marios

Reputation: 27380

Use INDEX:

=INDEX(GOOGLEFINANCE("CURRENCY:"&"USD"&"GBP", "price",TODAY()-1),2,2)

enter image description here

Upvotes: 5

Related Questions