Returning cell data dependent on a range

Gemes83

New Member
Joined
Dec 22, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

I need some help please. I'm working on a financial model that reflects a period of investment over 5 years with a monthly cashflow. At the top of my sheet I have the month number (1,2,3,4,5...etc). I then have a separate cell which refers to the month in which we exit from the investment. I would like to be able to pull the cell data from that corresponds to the month number specified as the exit month. So for example... in cell J10, I wish to return the corresponding value from line 10, if the program month in line 7 matches the exit month in cell I10

Hope that makes sense. Thanks in advance
Screenshot 2022-12-22 100640.jpg
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
=HLOOKUP(I10,$AH$7:$AZ$100,ROW(A4),0)
No that hasn't fixed it unfortunately. It just produced the result #NA.

I should add that the snap shot I inserted in my original post is reduced in size just to fit into the thread. The column starts from month 1 which is cell N7, and the programme ends at month 150 which is cell FG7
 
Upvote 0
Another option
Excel Formula:
=XLOOKUP(I10,$N$7:$FG$7,N10:FG10,"",0)
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,179
Members
448,871
Latest member
hengshankouniuniu

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