Date Range Look Up

jking1

New Member
Joined
Sep 28, 2021
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I'm putting together a loan amortization schedule and am struggling with finding a suitable date formula.

I'd like to be able to have a reference cell with =TODAY() in, then a secondary cell refencing a column of data. Depending if TODAY date is within a range I'd like it to return the closing balance.

For example:

B3 has =TODAY()

A20 to A33 has a range of dates at month end.

in C16 I'd like the formula to be able to look at todays date, look down column A and if the date is within the range for it to return the closing balance which is in the corresponding cell in column D.

I know Excel helpfully provide a loan amort schedule in a pre-populated template - however id like to understand how this works so i can replicate this in the future if need be.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
=index(D20:D33,match(today(),A20:A33,0))
But this assumes the date of today() exists in the range A20-A33

But it sounds like its just the month end dates

so if the range only has the last day of a month
=index(D20:D33,match(eomonth(today(),0),A20:A33,0))

otherwise
A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
Solution
Many thanks - the Index & Match today have worked a treat. Found a work around which now gives me the closing balance of the account as of the last day of the month.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,021
Latest member
pingpong7117

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