Jun 15 2021 06:24 PM
Hello,
I have attached a file with 2 sheets. One sheet has amounts and the other has rates.
The rates sheet has a start date and end date and I need to use the rate that corresponds to the date of the amount on the amounts sheet. Little difficult to explain but I think after you see the file it will make more sense.
I have provided sample data of what the calculations should look like.
Let me know if not clear. Grateful for the assistance.
thank you
Jun 15 2021 08:41 PM
Solution
You could use xlookup if you have that function. I believe it would be:
=B3*(30/360)*XLOOKUP(1,(tblPricing[Institution/Source]=$A10)*(tblPricing[Start Date]<=--B$9)*(tblPricing[End Date]>=--B$9),tblPricing[Rate],0)
Alternatively, I believe this will also work (will require you to hit Ctrl+Shift+Enter after keying/copying into the formula bar instead of just enter):
=B3*(30/360)*INDEX(tblPricing[Rate],MATCH(1,(tblPricing[Institution/Source]=$A10)*(tblPricing[Start Date]<=--B$9)*(tblPricing[End Date]>=--B$9),0))
Jun 17 2021 05:26 AM
Jun 17 2021 03:38 PM
Jun 17 2021 05:19 PM
Jun 17 2021 07:40 PM
Jun 15 2021 08:41 PM
Solution
You could use xlookup if you have that function. I believe it would be:
=B3*(30/360)*XLOOKUP(1,(tblPricing[Institution/Source]=$A10)*(tblPricing[Start Date]<=--B$9)*(tblPricing[End Date]>=--B$9),tblPricing[Rate],0)
Alternatively, I believe this will also work (will require you to hit Ctrl+Shift+Enter after keying/copying into the formula bar instead of just enter):
=B3*(30/360)*INDEX(tblPricing[Rate],MATCH(1,(tblPricing[Institution/Source]=$A10)*(tblPricing[Start Date]<=--B$9)*(tblPricing[End Date]>=--B$9),0))