Solved

Excel 2007 Query Tool Question about Criteria

Posted on 2011-09-23
10
144 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
  • 5
  • 5
10 Comments
 
LVL 6

Accepted Solution

by:
akajohn earned 500 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now