The staff set off from Bassetlaw Hospital at 10.00 am on the 18-mile trek arriving at Doncaster Royal Infirmary at 6.00 pm.
All the walkers asked colleagues, friends and family for sponsorship and it is hoped more than £1000 will have been raised.
Cindy Storer, head of Nursing and Quality, MSK & Frailty Care Group, said: “We want our trust to stand at the forefront of delivery of excellent care for people living with dementia.
“This includes looking at what will help to make our hospital environment dementia friendly including improved lighting, easy to read signage with use of pictures, oversized clocks with the date and time on and improved storage to help de-clutter wards.
“By developing a dementia friendly lounge on ward B5 we hope that our patients will feel safer, calmer and more comfortable,” Cindy added.
Sally Richardson, Trust Fundraiser, said: “Thank you to the members of staff who covered 41,810 steps for the sponsored walk to raise a great amount of money for such a worthwhile cause. The funds raised will go towards creating a patient friendly lounge for dementia patients in Bassetlaw to sit and watch television or listen to music in a more interactive and stimulating environment.”