Thread: filtering
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel
magix
 
Posts: n/a
Default filtering

Dear Guru,

I have problem with filtering process in term of coding in Excel VBA.

Here is my scenario, To make it simple, let say I have this record, and I
would like to have list of customer
who has Apple from New York, provided that customer will not have Orange
from New York.

Cust Fruit Place
===================
111 Apple NewYork
111 Banana NewYork
222 Apple NewYork
222 Banana NewYork
222 Orange NewYork
333 Apple NewYork
555 Banana NewYork
555 Orange NewYork
666 Apple NewYork
777 Orange NewYork
777 Apple NewYork

The output I want is:

111 Apple NewYork
333 Apple NewYork
666 Apple NewYork


Note: For Apple in Customer 222 and 777 are NOT selected because this
customer has ORANGE

So, what is the suitable coding to search through multiple rows for same
customer , and do filtering there based on same customer number ?

I hope you got what I mean.

Thanks.

Regards, Magix