Excel 2007 Query Tool Question about Criteria

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?
LVL 1
Anthony6890Asked:
Who is Participating?
 
AnilData ManagerCommented:
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
 
Anthony6890Author Commented:
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
 
AnilData ManagerCommented:
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
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
Anthony6890Author Commented:
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
 
AnilData ManagerCommented:
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
 
Anthony6890Author Commented:
Are you importing the address book into the excel worksheet?  Because I can't actually do that- it's too large.  
0
 
AnilData ManagerCommented:
Where is your Database ?

A.
0
 
Anthony6890Author Commented:
It's an iSeries AS400 via an ODBC.
0
 
AnilData ManagerCommented:
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
 
Anthony6890Author Commented:
No, it isn't a DB2 Database.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.