I've moved a little further on and have a solution that works - there may be a much simpler solution of course and any ideas would be appreciated!
I have a list of employee information stored in "Staff Info" tab. The columns show Department, Employee ID, Employee Name. There are four distinct departments and about 400 staff members....this list is refreshed quite often as it's not unusual for staff to be added or to switch departments.
I have created a new tab for each department and I want the records for only that department to magically appear....without having to do any copying/pasting/deleting etc
The formula I have so far in the tab "DEPARTMENT 1" is....
in cell A2:
=MATCH("Dept1",INDIRECT(CONCATENATE("'STAFF INFO'!A",A1+1)):'STAFF INFO'!$A$450,0)+A1
in cell A3:
=MATCH("Dept1",INDIRECT(CONCATENATE("'STAFF INFO'!A",A2+1)):'STAFF INFO'!$A$450,0)+A2
This formula returns the row number of each record where the department = "Dept 1"
I can then (using cell A3 example above) type:
=INDIRECT(CONCATENATE("'STAFF INFO'!B",A3))
into cell B2 of the Dept 1 tab and it returns the value of the second column and second instance of the dept "Dept 1".
Messy I know - but it seems to work............