Is this possible in excel?

PATSYS

Well-known Member
Joined
Mar 12, 2006
Messages
1,749
Is it possible to, say, maintain a database in separate workbook. Then create a UDF that will just pick data from that database based on certain parameters defined in the UDF like YEAR, Account, Entity?

For example, I have all financial data in the database from year 2000-2006. If I use the UDF, say =specialfunction(2005,110000,Company1), then it will just return the corresponding value from the database?

I am just asking if this is possible in excel and if so, just a broad idea of how difficult is it to set up.

Thanks.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

BJungheim

Well-known Member
Joined
Jul 24, 2004
Messages
914
Take a look at the DGET, DSUM, DAVERAGE functions. They should give you what you need....although unless it's going to be a pretty small data set you'd probably be better off going with Access.
 

PATSYS

Well-known Member
Joined
Mar 12, 2006
Messages
1,749
Thanks but I was actually thinking of a way to get rid of having to link to an external workbook because this will surely slow the system. I was thinking of hardcoing the values somewhere where I can just type a special UDF in all my files then the values will be there.
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,015
Office Version
  1. 365
Have a look at data --> import external data --> new database query.
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,015
Office Version
  1. 365
Perhaps, though I believe it's included with the Office CDs if it's not already installed on your PC.
 

Forum statistics

Threads
1,141,027
Messages
5,703,816
Members
421,318
Latest member
cg_cartoonexcel

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