Dynamic Find End of Year

ryancgarrett

Board Regular
Joined
Jun 18, 2011
Messages
122
I am trying to build a dynamic table that looks up inventory value at end of the year. Data is shown below:

201420152016201711/31/1412/31/141/31/152/28/153/30/154/30/155/31/156/30/157/31/158/31/159/30/1510/31/1511/30/1512/31/15
Inventory100000102000900001000009300098000115000105000110000110000850009200097000103000101000102000

<tbody>
</tbody>

The bolded values are the ones that should be calculated. The years above the bolded values are dynamic, based on a start date in an assumptions page, as are the dates in the 2nd table.

I need to write a formula that takes the year above and reports the value in the second table for 12/31 of that year.

I've played around a bit with Index-Match, but unsuccessfully. If someone could at least start me off in the right direction I would really appreciate it.

Thanks!
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

ryancgarrett

Board Regular
Joined
Jun 18, 2011
Messages
122
Sorry guys, writing it down helped me solve it myself. I used an hlookup as follows:

=HLOOKUP(DATE(B1,12,31),G1:T2,2,0)

Let me know if there is a more efficient way than that.

Thanks again!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,556
Messages
5,596,820
Members
414,104
Latest member
imamalidadashzada

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
Top