How reference a cell based on the date and another criteria?

dschev

New Member
Joined
Dec 3, 2017
Messages
4
So I am creating a portfolio model for real estate and there is 4 possible ways to purchase a property. Creating 4 different possible cash flows. I need to pull the cash flow based on the way I am purchasing a property and based on which year it was purchased.

So for example:

Year 1 Year 2 Year 3 Year 4
Purchase Scenario 1 $1000 $1250 $1500 $1750
Purchase Scenario 2 $2000 $2250 $2500 $2750
Purchase Scenario 3 $3000 $3250 $3500 $3750
Purchase Scenario 4 $4000 $4250 $4500 $4750

I understand how to use index to pull a value in a certain purchase scenario in a certain row in a certain column. My issue is if a property is bought in the second year i need to be able to pull the cash flow from the second year not the first.

Lets say I buy a property using the "Purchase Scenario 2" in the second year. I need excel to pull $2250 and put that in the designated cell. I need this to work based on the date I enter as the purchase date. So if the first year of purchases starts on 1/1/2017 and I enter 1/1/2018 as the purchase date I need the cash flow from year 2 because I am purchasing the property in year 2.

Basically if I designate the property as "Purchase Scenario 3" and I am purchasing it in "Year 2" I need excel to automatically pull $3250 (based on the table I created above).
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hello dschev, welcome to MrExcel

If your table starts at A1 then with first year start date in J2, your purchase date in K2 and "Purchase Scenario x" in L2 try this formula

=INDEX(B2:E5,MATCH(L2,A2:A5,0),DATEDIF(J2,K2,"y")+1)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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