?
Solved

Excel 2007 Query Tool Question about Criteria

Posted on 2011-09-23
10
Medium Priority
?
157 Views
Last Modified: 2012-05-12
I have a question.  I know Excel has a built in query tool.  I've been able to use it with an ODBC connection to my iSeries.  My question is, let's say that I have an Excel spreadsheet with a list of customer ID numbers on it and I want to do a query, using Microsoft Query, to obtain addresses for those customer ID's.  Is there a way ti set a criteria to only show those addresses where the customer ID's match from my original Excel file to our master file on our server?
0
Comment
Question by:Anthony6890
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 6

Accepted Solution

by:
akajohn earned 2000 total points
ID: 36587381
Using either a formula or the filters in Excel you should be able to filter the ID's (provided your criterias are not too complex).

May be you want to provide some dummy data.

A>
0
 
LVL 1

Author Comment

by:Anthony6890
ID: 36587386
By using the formula or filters, are you suggesting that I bring in my total membership file?  I can't do it because of the size...
0
 
LVL 6

Expert Comment

by:akajohn
ID: 36587460
Hi Anthony, I suggest that you can post a subset of all the data after you have deleted any confidential information and anonymised the data.  Any attachment you post here will be publicly  visible.
If you give us about 10-20 rows of data , we could show you how to filter the data.

A>
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:Anthony6890
ID: 36587494
Ok so attached is basically what my file looks like.  I saved it as a text file. Customer-ID-Test.txt

so basically my master file has the same column along with columns for first name, last name, address, city, state, and zip
0
 
LVL 6

Expert Comment

by:akajohn
ID: 36587758
Please see attached Example.

The master Address Book contains your massive address book. And the first sheet is where you want to lookup a subset of customer ID's. It tells you "Not Found" if those ID's are not found in the database.
You will have to change the range (slightly)  to accommodate a larger address table in the formulae.

File is Excel 2007 compatible.
Hope this helps,

A>
Book14.xlsx
0
 
LVL 1

Author Comment

by:Anthony6890
ID: 36587822
Are you importing the address book into the excel worksheet?  Because I can't actually do that- it's too large.  
0
 
LVL 6

Expert Comment

by:akajohn
ID: 36587955
Where is your Database ?

A.
0
 
LVL 1

Author Comment

by:Anthony6890
ID: 36588045
It's an iSeries AS400 via an ODBC.
0
 
LVL 6

Expert Comment

by:akajohn
ID: 36588067
Well assuming you got a lot of Customer IDs it may be better to query the database directly or through ODBC using SQL.

Is its DB2 database ?

A>
0
 
LVL 1

Author Comment

by:Anthony6890
ID: 36588503
No, it isn't a DB2 Database.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

766 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question