The county borders , going anticlockwise from the west : Lancashire , Greater Manchester , Derbyshire , South Yorkshire and North Yorkshire .
The county borders Lancashire , Greater Manchester , Derbyshire , North Yorkshire and South Yorkshire .