View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ken McLennan[_4_] Ken McLennan[_4_] is offline
external usenet poster
 
Posts: 29
Default Advanced filter query

G'day there One & All,

Since I can spell XL, I've been nominated as the office guru. I
was asked to modify a spreadsheet (which I wrote, so that's probably the
reason they asked ME). Naturally when I asked I displayed enormous
confidence telling the supervisor "Sure! That's easy!!". Naturally, that
was followed by a list of further modifications which he expected I
could also make with similar ease. Naturally I didn't disuade him from
his belief in my genius, but I did begin to go cross-eyed as the list of
modifications continued growing!


Nearly all were simple, and have been completed. I'm now working
on what I think is the last one, but I'm not exactly sure how to go
about it.

I have an employee list with a header row, that also includes 4
hidden "helper" columns. It can be filtered by values selected in
different comboboxes that work on either the main, or the "helper",
columns to perform the obvious task.

The modification that I told the boss was an easy one (Note to
self: "Keep mouth shut!!") is to further filter the list by values that
are included within the data. For instance, included in the Name column
are various extra details as follows:

Name
-------------------------
Smiff A.B. (STO)(BD)(MCC)
Black C.D.
Jones E.F. (BD)(FW)
Brown G.H. (CU)(OTK)

The extra bits are only vaguely standard, insofar as Makes Crap
Coffee (MCC) might be written as (CCM) - Crap Coffee Maker.

(STO) - Staff Training Officer
(BD) - Beer Drinker
(FW) - Fire Warden (goes well with the beer drinker tag)
(CU) - Completely useless
(OTK) - Overtime King

The meanings and codes are irrelevent. I need to collect each of
them, copy to a work area, make a list of unique entries and then super
glue those entries into a combobox. That part actually IS easy.

My problem now is to filter the list. I can set aside further
helper columns, but since some entries will have more than one code I
can't just put them all in one helper column. Especially since I need to
search unique entries from the combobox. I know that I can put a marker
into a helper cell and then filter the rows with that marker, but that
will show all the entries with codes, not just all the beer drinkers.
I've no doubt that this problem has been addressed before, but Google
brings up squillions of entries. I'm currently working through Mr
Excel's archives, and some posts look helpful, but I'm getting a
headache and can't seem to simplify my problem.

Does anyone have any ideas where I can look? or how to approach
the problem? Is it possible to filter on included strings somehow,
rather than the entire cell contents? (I don't think so. I think a
helper column will somehow be the way to go.)

Thanks for reading this far.

--
See ya,
Ken McLennan
Qld, Australia