Need insert a dash in between last 4 digits in text string

G

Guest

I have a column (TractID) that has a 10 character text string, like the
following entry: 0190003164.

First, I need to grab the last four digits (3164) of the entry, copy them to
the next column (PropertyID), then insert a dash (-) between the 3rd to last
(from the R) and the 2nd to last characters.

The data in the column will always be the same format, if that helps.

How do I do this?
 
G

Guest

If the text is in A1 then enter the following formula in B1
=Mid(A1,7,2) & "-" & Mid(A1,9,2)
Alok
 

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

Similar Threads


Top