BarryMK
11-05-2007, 07:59 AM
I have a table from an excel sheet that comes in the format above with up to 5000 rows in record groups from 1 to 10 rows in each. The repeating data is how it comes from our all singing and dancing case recording software and I can’t change that fact.
Take a group of records with the same TradingName such as “The Herriots” group, There should be one row in the group where FdInspAction = LastInspDate (in this case 06/01/2007) . In this group there is no match so we need to identify the group. The “Bloggs” group is fine (see Row 8) so can be ignored.
My feeling is it can’t be done other than by visual checking. Can anyone think of a way around this?
ID TradingName FdInspAction LastInspDate
1 The Heriotts 03/02/2001 06/01/2007
2 The Heriotts 10/02/2002 06/01/2007
3 The Heriotts 16/02/2003 06/01/2007
4 The Heriotts 25/01/2005 06/01/2007
5 The Heriotts 04/01/2006 06/01/2007
7 Bloggs Ltd 02/01/2005 25/01/2005
8 Bloggs Ltd 25/01/2005 25/01/2005
Take a group of records with the same TradingName such as “The Herriots” group, There should be one row in the group where FdInspAction = LastInspDate (in this case 06/01/2007) . In this group there is no match so we need to identify the group. The “Bloggs” group is fine (see Row 8) so can be ignored.
My feeling is it can’t be done other than by visual checking. Can anyone think of a way around this?
ID TradingName FdInspAction LastInspDate
1 The Heriotts 03/02/2001 06/01/2007
2 The Heriotts 10/02/2002 06/01/2007
3 The Heriotts 16/02/2003 06/01/2007
4 The Heriotts 25/01/2005 06/01/2007
5 The Heriotts 04/01/2006 06/01/2007
7 Bloggs Ltd 02/01/2005 25/01/2005
8 Bloggs Ltd 25/01/2005 25/01/2005