Well, I don't believe that there is a friendship algorithm or some kind of easy answer to this. Friendship depends on things you can't entirely control, like "chemistry" or "having things in common". But my definition of friendship is very specific, namely the people I can trust and who can take me with all my limitations. So I only have three people I actually consider my friend-friends, and a bunch of acquaintances who I can only talk to when I really feel social.
I think the key to all three of them was an awkward amount of honesty. I literally approached them like "hey, I usually don't socialize much, so sorry if this is weird. But somehow you intrigue me." I know that there's something as "too honest", but personally I did make the observation that for me this whole masquerade about "trying to fit what I think they expect" at first with the idea "once they like me, i can tell them about my flaws but since they already like me they will forgive them" never ever worked out for me. It's always been a waste of time and energy. I also think it's borderline manipulative to pretend you are something you're not, but that's just a reflection of my own experiences.
I think the thing you also need to be very clear about is romantic interest, because one of the biggest problems I had in the past was that my interest was mistaken for romantic interest or sexual interest, and from what I read, that happens to a lot of people with similar issues and it's very frustrating.
Also, I don't really try to befriend your co-workers, because if it doesn't work, I'd still see them everyday. I don't really think work is something to bond over, in compare to let's say a common passion or comparable experiences in the past.
I'm sorry this probably doesn't help you at all. xD