0

formula to find date or first previous date

I'm trying to pull the exchange rate for a given date, but we only enter exchange rates once a week so there is not always an exact match. Is there an easy way to modify the formula below to have it look up the date or the first date prior to it in the Currency Exchange Rate table? Appreciate any advice on this. Bob T

nl(,"Currency Exchange Rate","Exchange Rate Amount","Starting Date",$O66,"Currency Code",$D66,"LCY Code","USD")

O66 = 29-Jun-14
D66 = EUR

sample of the Currency Exchange Rate Table data
Currency Code Starting Date Exchange Rate Amount Adjustment Exch. Rate Amount Relational Currency Code Relational Exch. Rate Amount Fix Exchange Rate Amount Relational Adjmt Exch Rate Amt LCY Code Budget Exchange Rate Amount Relational Budget Exch Rate Amt
EUR 06/02/2014 0.734376 0.734376 1.0 Currency 1.0 USD 0.7634 1.0
EUR 06/09/2014 0.734538 0.734538 1.0 Currency 1.0 USD 0.7634 1.0
EUR 06/16/2014 0.738825 0.738825 1.0 Currency 1.0 USD 0.7634 1.0
EUR 06/23/2014 0.737518 0.737518 1.0 Currency 1.0 USD 0.7634 1.0
EUR 06/30/2014 0.73443 0.73443 1.0 Currency 1.0 USD 0.7634 1.0

2 comments

Please sign in to leave a comment.