If I can walk upright and do my job (office work) could I still have a bruised or broken rib? Or would I be unable to do so?

It depends. The location and displacement of a fracture, associated injuries, time from the injury, and individual pain tolerance all factor into activity tolerance with a broken rib. If you are having serious problems. See a doctor.