The 41-year-old was arrested after officers were alerted to an incident at a shop in Upwell Street, Grimesthorpe, at 1.30pm yesterday.
Reports were received that a man had been seen brandishing a machete and had attacked a shopkeeper.
Sheffield weather: Met Office issues thunderstorm warning as heatwave set to end with heavy rain and lightning
Rivelin Valley Road Sheffield: Body found after police search of Rivelin Valley
Hosepipe ban: Reservoir near Sheffield less than 15 per cent full as photos show how water levels have plunged
Lakeside Doncaster: Major search launched by emergency services after man gets into difficulty in water
High Green assault: Sheffield bus driver punched on his break leaving him with facial injuries
Officers arrested the suspect on suspicion of aggravated burglary.
He was taken to hospital while under arrest and remains there today.
His injuries are not believed to be serious.
Nobody else was injured during the incident.
South Yorkshire Police said: "Police were called to Upwell Street, Grimesthorpe, Sheffield at around 1.30pm yesterday to reports of a man in possession of a knife."The man detained by police has been taken to hospital. His injuries are not believed to be serious."