Excel help please?!...
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] Excel help please?!!?

10 Posts
7 Users
0 Reactions
53 Views
Posts: 0
Free Member
Topic starter
 

I have to create a filter for this:

Column A has ID numbers
Column B has any 1 of 20 variables

So column A has multiple duplicates, as the variables in column B may or may not correspond to specific IDs listed in Column A

How can I produce a list of column A where varialble 1, 5 and 17 ( say) exist in isolation ( as in, as a set)?


 
Posted : 29/10/2010 3:12 pm
Posts: 0
Free Member
 

I'm not quite sure what you want.

But don't you just want to sort your data AtoZ by one of the columns?


 
Posted : 29/10/2010 3:21 pm
 IanB
Posts: 0
Free Member
 

When you say "in isolation", are you also implying "not duplicated"?

I can't quite picture what you're trying to achieve, but have you looked at Pivot tables?


 
Posted : 29/10/2010 3:23 pm
Posts: 145
Free Member
 

do you want to remove duplicates or sort?


 
Posted : 29/10/2010 3:24 pm
Posts: 0
Free Member
Topic starter
 

I want column A to show me which IDs have variable 1, 5 and 17 together.

The raw list has duplicates of the ID in column A as it has variable 1, 5 and 17.

Does that make it any clearer?

Filtering and pivot tables only show me which IDs have any of the variables, and I have a very long list, so I don't want to have to go through it manually removing single variable entries. I just want the instances where the ID has all 3 variables.


 
Posted : 29/10/2010 3:29 pm
 imn
Posts: 209
Full Member
 

vlookup or hlookup functions might sort it. Have a look at help for details on how to combine queries.


 
Posted : 29/10/2010 3:32 pm
Posts: 0
Free Member
Topic starter
 

cheers


 
Posted : 29/10/2010 3:33 pm
 IanB
Posts: 0
Free Member
 

In column C this formula will give you the ID's that match 1,5 or 17

=IF(OR(B1=1,B1=5,B1=17)=TRUE,A1,"")

Copy that down you data and filter from that column to hid blanks. It's a start, and there's probably a way of consolidating the list of ID's (which I figure will contain duplicates which I haven't thought of yet...


 
Posted : 29/10/2010 3:46 pm
Posts: 0
Free Member
Topic starter
 

IanB...thanks a mighty bunch


 
Posted : 29/10/2010 3:54 pm
Posts: 0
Free Member
 

If you only want to look at duplicates, use a pivot table to identify instances of your IDs. Copy the results & paste speical; values on sheet 2 of your workbook. Delete out IDs from this list with an instance of 1.

in Column C of your original worksheet enter =VLOOKUP(A1,Sheet2!A$1:B$35,2,0), where A2:B35 = the boundaries of the copied pivot table. Copy & paste special; values column C.

Sort data by column c, then column a. Your duplicate IDs will all be at the top of your spreadsheet. Then use Ianb's formula...


 
Posted : 29/10/2010 3:56 pm
Posts: 0
Free Member
 

Can you post a subset of your data and example of desired results?

Can't follow your description...


 
Posted : 29/10/2010 3:57 pm