You got in on the 23rd floor.
You could say "Emma got on an elevator on the 23rd floor, she remembered she left her sunglasses as her friends apartment 7 floors down. She got in the elevator and went to the 16th floor, got her sunglasses and then continued with her day"