A man has been charged with attempted murder after he allegedly walked into an office building in Darlinghurst armed with a knife and stabbed a woman in the hand.

Police said the 23-year-old man entered the office block on William Street about 2.20pm on Wednesday.

A man has been arrested after a stabbing at 80 William Street. Credit:Tago Fabic

He made his way to the office of recruitment agency Max Solutions, on the second floor, and allegedly started yelling threats, including that he was going to kill someone.

Police will allege in court that the man then stabbed a female employee in the hand before he was wrestled to the ground by clients and a staff member. The woman also suffered a small cut to her face, police said.