Stewpot,
Select all your data, then do data=>Filter=>Autofilter
then in the column for patient ID (or name or other unique identifier),
click the dropdown arrow and select that patient.
This will hide all but the records for that patient.
In the dropdown, All will remove that filter condition. Data=>Filter=>Show
All will remove all filter conditions. Data=>Filter=Autofilter will remove
the filter.
http://www.rondebruin.nl/0307commands.htm will give you Excel 2007
equivalencies if you need that.
--
Regards,
Tom Ogilvy
"stewpot" wrote:
> I have hundreds of rows of patient data and within that data I need to look
> at each individual patients data.
> For every patient I have several rows of data, each row contains the same
> fields but they relate to different events in their hospital stay which are
> numbered 1,2,3,etc. I am trying to compare the latest event with the previous
> event (e.g. event 3 with event 2) and show whether their test results (which
> is a number) increase or decrease and if for instance it increases and is now
> over 30, count it as a yes and if it goes down count it as a no. The macro
> will need to identify the most recent event and then compare this to the
> previous event, this will be different for each patient record. Can you help?