VLookup question to match dates in Col_index_num between two workbooks

mwhitman

New Member
Joined
May 13, 2015
Messages
2
Hello all -

First post, so please bear with me.

I am trying to write a VLookup formula as part of a cash forecast I am setting up. I am looking to pull daily bank balances (kept in a separate workbook) into my forecast for an opening cash position.

I can reference the Col_Index_Num and set it to the correct column for the date I need in the bank balance workbook, and it will return the correct value, however, I would need to update the Col_index_num 365 times to match the correct column in the bank balance workbook to my cash forecast workbook. Instead, f or the Col_index_num, I'd like to set a check that if the date in row 2 of the cash forecast worksheet matches the date in row 2 of the bank balances worksheet, then return that column's output for the lookup_value.

So, something like =vlookup(<insert company name>,table array, =if(date in bank balance worksheet b2 = date in cash forecast worksheet b2, ???,???), 0). Any thoughts on how to complete that formula would be greatly appreciated!

Thanks, Mike
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
MAYBE:
=LOOKUP(2;1/(data_array=b2);data_array)
Please provide details of data layout with just few rows and colunms with the expected outcome so we can understand better?
 
Upvote 0
Thanks Gerry...the lookup function yielded a #REF result.
Bank balance spreadsheet looks similar to this:
Fri
Account Name5/1/2015
Company500.00

<colgroup><col><col></colgroup><tbody>
</tbody>

Cash forecast spreadsheet looks similar to this:
5/1/2015
Company
Bank CashLooking for above bank balance to return value here

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


What I'm trying to lookup is the date (5/1/15) in the bank balance spreadsheet to match the date in the cash forecast spreadsheet and return the bank balance for that day in the blue lettered cell above.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

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