+ Reply to Thread
Results 1 to 19 of 19

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

  1. #1
    Alok
    Guest

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

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

    "Phil" wrote:

    > 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?


  2. #2
    Phil
    Guest

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

    Thanks. It worked great.

    "Alok" wrote:

    > If the text is in A1 then enter the following formula in B1
    > =Mid(A1,7,2) & "-" & Mid(A1,9,2)
    > Alok
    >
    > "Phil" wrote:
    >
    > > 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?


  3. #3
    JE McGimpsey
    Guest

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

    One way:

    =MID(A1,7,2) & "-" & RIGHT(A1,2)

    another:

    =TEXT(RIGHT(A1,4),"00-00")

    In article <[email protected]>,
    "Phil" <[email protected]> wrote:

    > 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?


  4. #4
    Alok
    Guest

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

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

    "Phil" wrote:

    > 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?


  5. #5
    Phil
    Guest

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

    Thanks. It worked great.

    "Alok" wrote:

    > If the text is in A1 then enter the following formula in B1
    > =Mid(A1,7,2) & "-" & Mid(A1,9,2)
    > Alok
    >
    > "Phil" wrote:
    >
    > > 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?


  6. #6
    JE McGimpsey
    Guest

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

    One way:

    =MID(A1,7,2) & "-" & RIGHT(A1,2)

    another:

    =TEXT(RIGHT(A1,4),"00-00")

    In article <[email protected]>,
    "Phil" <[email protected]> wrote:

    > 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?


  7. #7
    Phil
    Guest

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

    Thanks. It worked great.

    "Alok" wrote:

    > If the text is in A1 then enter the following formula in B1
    > =Mid(A1,7,2) & "-" & Mid(A1,9,2)
    > Alok
    >
    > "Phil" wrote:
    >
    > > 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?


  8. #8
    JE McGimpsey
    Guest

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

    One way:

    =MID(A1,7,2) & "-" & RIGHT(A1,2)

    another:

    =TEXT(RIGHT(A1,4),"00-00")

    In article <[email protected]>,
    "Phil" <[email protected]> wrote:

    > 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?


  9. #9
    Alok
    Guest

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

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

    "Phil" wrote:

    > 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?


  10. #10
    JE McGimpsey
    Guest

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

    One way:

    =MID(A1,7,2) & "-" & RIGHT(A1,2)

    another:

    =TEXT(RIGHT(A1,4),"00-00")

    In article <[email protected]>,
    "Phil" <[email protected]> wrote:

    > 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?


  11. #11
    Phil
    Guest

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

    Thanks. It worked great.

    "Alok" wrote:

    > If the text is in A1 then enter the following formula in B1
    > =Mid(A1,7,2) & "-" & Mid(A1,9,2)
    > Alok
    >
    > "Phil" wrote:
    >
    > > 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?


  12. #12
    Alok
    Guest

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

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

    "Phil" wrote:

    > 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?


  13. #13
    JE McGimpsey
    Guest

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

    One way:

    =MID(A1,7,2) & "-" & RIGHT(A1,2)

    another:

    =TEXT(RIGHT(A1,4),"00-00")

    In article <[email protected]>,
    "Phil" <[email protected]> wrote:

    > 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?


  14. #14
    Phil
    Guest

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

    Thanks. It worked great.

    "Alok" wrote:

    > If the text is in A1 then enter the following formula in B1
    > =Mid(A1,7,2) & "-" & Mid(A1,9,2)
    > Alok
    >
    > "Phil" wrote:
    >
    > > 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?


  15. #15
    Alok
    Guest

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

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

    "Phil" wrote:

    > 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?


  16. #16
    JE McGimpsey
    Guest

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

    One way:

    =MID(A1,7,2) & "-" & RIGHT(A1,2)

    another:

    =TEXT(RIGHT(A1,4),"00-00")

    In article <[email protected]>,
    "Phil" <[email protected]> wrote:

    > 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?


  17. #17
    Phil
    Guest

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

    Thanks. It worked great.

    "Alok" wrote:

    > If the text is in A1 then enter the following formula in B1
    > =Mid(A1,7,2) & "-" & Mid(A1,9,2)
    > Alok
    >
    > "Phil" wrote:
    >
    > > 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?


  18. #18
    Alok
    Guest

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

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

    "Phil" wrote:

    > 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?


  19. #19
    Phil
    Guest

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

    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?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1