ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pulling data out of a large database (https://www.excelbanter.com/excel-discussion-misc-queries/4238-pulling-data-out-large-database.html)

Dave

Pulling data out of a large database
 
I am trying to build a file to pull information from a larger database and
put it into summary file. I would like to be able to use criteria like 15
months and % range <100 to pull information about products from a larger
database. A single row of data would have multiple columns. I need to be
able to pull the entire row of data, that corresponds to the criteria, to the
summary sheet.

I hope this makes sense.

Thanks

Gary Rowe

Dave,
You need to make an ODBC connection to the database and use MSQuery to query
the data. Click on Data, Import External Data, New Database Query. In the
Choose data source select a preexisting data connection or create a new one
to your database. Follow the wizard from there.

"Dave" wrote:

I am trying to build a file to pull information from a larger database and
put it into summary file. I would like to be able to use criteria like 15
months and % range <100 to pull information about products from a larger
database. A single row of data would have multiple columns. I need to be
able to pull the entire row of data, that corresponds to the criteria, to the
summary sheet.

I hope this makes sense.

Thanks


Dave

Hi Gary

Sorry, I did not include enough info. The data in the "database" is in an
Excel file. Is there a way to query the excel file?

Thanks


"Gary Rowe" wrote:

Dave,
You need to make an ODBC connection to the database and use MSQuery to query
the data. Click on Data, Import External Data, New Database Query. In the
Choose data source select a preexisting data connection or create a new one
to your database. Follow the wizard from there.

"Dave" wrote:

I am trying to build a file to pull information from a larger database and
put it into summary file. I would like to be able to use criteria like 15
months and % range <100 to pull information about products from a larger
database. A single row of data would have multiple columns. I need to be
able to pull the entire row of data, that corresponds to the criteria, to the
summary sheet.

I hope this makes sense.

Thanks


Debra Dalgleish

You can use an Advanced Filter to extract the data. There are
instructions in Excel's Help, and he

http://www.contextures.com/xladvfilter01.html

Dave wrote:
I am trying to build a file to pull information from a larger database and
put it into summary file. I would like to be able to use criteria like 15
months and % range <100 to pull information about products from a larger
database. A single row of data would have multiple columns. I need to be
able to pull the entire row of data, that corresponds to the criteria, to the
summary sheet.


--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


Gary Rowe

Dave,
Yes you can query a worksheet including the workbook you're working in.
Your data needs to be in a table with a header row for each column. Click on
data, import external data, new database query. On the choose data source
dialog box choose "excel files" and then select the excile file with the
worksheet data you're wanting to query. Proceed from there.

"Dave" wrote:

Hi Gary

Sorry, I did not include enough info. The data in the "database" is in an
Excel file. Is there a way to query the excel file?

Thanks


"Gary Rowe" wrote:

Dave,
You need to make an ODBC connection to the database and use MSQuery to query
the data. Click on Data, Import External Data, New Database Query. In the
Choose data source select a preexisting data connection or create a new one
to your database. Follow the wizard from there.

"Dave" wrote:

I am trying to build a file to pull information from a larger database and
put it into summary file. I would like to be able to use criteria like 15
months and % range <100 to pull information about products from a larger
database. A single row of data would have multiple columns. I need to be
able to pull the entire row of data, that corresponds to the criteria, to the
summary sheet.

I hope this makes sense.

Thanks



All times are GMT +1. The time now is 12:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com