Solved

Excel 2007 Query Tool Question about Criteria

Posted on 2011-09-23
10
148 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

830 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