Is this possible in excel?

PATSYS

Well-known Member
Joined
Mar 12, 2006
Messages
1,750
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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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.
 
Upvote 0
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.
 
Upvote 0
Have a look at data --> import external data --> new database query.
 
Upvote 0
Perhaps, though I believe it's included with the Office CDs if it's not already installed on your PC.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,423
Members
448,961
Latest member
nzskater

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