To edit in real-time with others, upload the file to OneDrive and share it. You can collaborate with either Microsoft 365 web or desktop apps. Office shows you where in the file others are working.
To upload and share, see Collaborate in OneDrive.
For more info on real-time collaboration, see Work Together on Office documents.