Removing digits from front and back of number in a cell

  • Thread starter Thread starter Scott
  • Start date Start date
S

Scott

I have a column of numbers that I need to delete the
first 5 digits of the number and the last 2 digits of the
number. Can this be done in Excel? If so, how?

Any help would be appreciated.

Thank you,
Scott
 
Hi Scott,

Assuming your number is in cell A1

=LEFT(RIGHT(A1,LEN(A1)-5),LEN(A1)-5-2)

Or slightly simplified,

=LEFT(RIGHT(A1,LEN(A1)-5),LEN(A1)-7)

Hope that helps.

Regards,
Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top