Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel 2007 Query Tool Question about Criteria

Posted on 2011-09-23
10
Medium Priority
?
162 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

636 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