I'm looking for a formula in LibreOffice Calc to find the last value in a range that meets a condition. Here is sample data:
A B C D E F
Date US Amount Currency Local Amount Exchange Rate Reconciled
01/01/01 $1000.00 GBP 654 GBP 1.53 x
01/05/01 $1000.00 EUR 757.12 EUR 1.32 x
01/18/01 $1000.00 GBP 688 GBP 1.45 x
01/19/01 $1000.00 EUR 763.36 EUR 1.31 x
01/28/01 $1000.00 GBP 675.58 GBP 1.48
01/29/01 $1000.00 EUR 778.87 EUR 1.28
So, I'm looking for a formula that would pull the last, reconciled exchange rate of the appropriate currency. (In this case, for EUR it would pull 1.31, as the 1.28 hasn't been reconciled yet.) It seems that in Excel I might be able to use the DLAST function, however that doesn't seem to have been implemented in LibreOffice.
Any workarounds for LibreOffice?