Excel formula/query from Access by specific date across multiple Access tables?

ericross2

New Member
Joined
Dec 10, 2013
Messages
1
I have an Access 2007 database with separate tables each a separate stock with an array of prices by date such as:

Table: AAPL
Date Price
12/9/2013 $453
12/9/2013 $451
12/9/2013 $464
12/9/2013 $467
etc.

I have an Excel 2007 spreadsheet which I would like to link to these tables to compare/contrast these stocks and display the results (currently have this data automatically downloaded as .csv files and linked into my Excel spreadsheet, but want to change to Access for the reasons I detail below). I must use Excel as I have everything in Excel already automated, the calculations are intensive/complex/work, and the display charts are highly designed and linked to other documents.

My issue is that there are some dates in which one or more stocks don’t have prices (they didn’t trade while the others did trade). In my comparisons between these stocks I need the dates to match exactly – I can’t compare 12/8/2013 in one name with 12/9/2013 in another.

I have used the Bloomberg database query add-in for Excel which as a nice formula interface that accomplishes what I require: with a simple formula custom to Bloomberg’s database an Excel user can call the price on a specific date -- using ‘=bdq(AAPL,PRICE,12/9/2013)’ as a formula in a cell will populate that cell with that date’s price. Additionally, a user can substitute the date field for a cell reference – i.e. changing the ‘12/9/2013’ to ‘+A5’ in which cell A5 has the date 12/9/2013. This is very useful for my purposes as I can call the same date across multiple stock queries.

Question: is there a way to do this using Access 2007? – query a specific date from an Access table in Excel, ideally as a formula or cell-specific code, and have the date stipulated from another column/cell in the spreadsheet?

I am a new member and apologize if this was covered somewhere else (I couldn’t find it) or if I posted this in the incorrect section.

Thank you for your help and advice.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,216,818
Messages
6,132,879
Members
449,765
Latest member
Coffebreak

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