IF date range met, return a cell value.

ddub25

Well-known Member
Joined
Jan 11, 2007
Messages
625
Office Version
  1. 2019
Platform
  1. Windows
I have a Web Query which pulls exchange rate details off of a website every 60 mins.

I would like to create a table like the one below that references those exchange rates and will only update an exchange rate if todays date is between the dates listed in Column A and B. When the date range has passed, I want the last updated value to remain indefinately.

For example: Cell C3 contains 0.66 which would have been last updated on 31st Jan 2011. I want this value to remain and then Cell C4 would be the active one updating until 28th Feb.

Column A Column B Column C Column D
1 Date___________________Exchange Rate
2 _______________________$-£________€-£
3 01/01/11 31/01/11______0.66_______0.8470
4 01/02/11 28/02/11______0.64_______0.85
5 01/03/11 31/03/11______0.61_______0.856

Can anyone help. Thanks.

Dan
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top