Dear respected It's MR,
Good day! Thank you for posting to Microsoft Community. We are happy to help you.
As per your description, you may use the RIGHT function and combination of the LEFT and LEN functions:
For First 5 digits:
=LEFT(A2, LEN(A2) - 4)
Or for First 4 digits:
=LEFT(A2,LEN(A2)-5)
Left digits:
=RIGHT(A2, 5)
Appreciate your patience and understanding and thank you for your time and cooperation.
Sincerely,
Waqas Muhammad