Find proper case put delimiter after upper case

shrinivasmj

Board Regular
Joined
Aug 29, 2012
Messages
140
I have a data in A coloum , NEED FORMULA OR VB TO PUT DELIMITER BETWEEN UPPER CASE AND PROPER

2133 JOSEPH DAMON DR Magadan Miass (8)862
624 WOODLAND TRAILS DR Krasnoyarsk Kirsanov 4862
29 WASHINGTON ST. Magadan Cherepovets 8652
19441 134TH AVE. S.E. Tjumen Zavolzhye 84722

EG

NEED TO PUT THE DELIMATER ( ^ ) AS SHOWN BELOW

2133 JOSEPH DAMON DR ^ Magadan Miass (8)862
624 WOODLAND TRAILS DR ^ Krasnoyarsk Kirsanov 4862
29 WASHINGTON ST. ^ Magadan Cherepovets 8652
19441 134TH AVE. S.E. ^ Tjumen Zavolzhye 84722
 
Re: Find proper case put dilimater afetr upper case

FO BELOW DATA ITS NOT WORKING

1623 PINKNEY STREET Self-Employed 222

<tbody>
</tbody>

This is why I asked the question back in post #2, which you refused to answer! Please answer it now - what other formats could exist after the section in upper case?
 
Upvote 0

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Re: Find proper case put dilimater afetr upper case

Here's a rather long formula:

AB
12133 JOSEPH DAMON DR Magadan Miass (8)8622133 JOSEPH DAMON DR ^ Magadan Miass (8)862
2624 WOODLAND TRAILS DR Krasnoyarsk Kirsanov 4862624 WOODLAND TRAILS DR ^ Krasnoyarsk Kirsanov 4862
329 WASHINGTON ST. Magadan Cherepovets 865229 WASHINGTON ST. ^ Magadan Cherepovets 8652
419441 134TH AVE. S.E. Tjumen Zavolzhye 8472219441 134TH AVE. S.E. ^ Tjumen Zavolzhye 84722
51623 PINKNEY STREET Self-Employed 2221623 PINKNEY STREET ^ Self-Employed 222

<tbody>
</tbody>
Sheet15

Worksheet Formulas
CellFormula
B1=TRIM(REPLACE(SUBSTITUTE(" "&A1," ",REPT(" ",200)),
AGGREGATE(15,3,FIND({"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"},SUBSTITUTE(" "&A1," ",REPT(" ",200))),1)-100,1,"^"
)
)

<tbody>
</tbody>

<tbody>
</tbody>


The AGGREGATE function is available in Excel 2010 and later.
 
Last edited:
Upvote 0
I have a data in A coloum , NEED FORMULA OR VB TO PUT DELIMITER BETWEEN UPPER CASE AND PROPER

2133 JOSEPH DAMON DR Magadan Miass (8)862
624 WOODLAND TRAILS DR Krasnoyarsk Kirsanov 4862
29 WASHINGTON ST. Magadan Cherepovets 8652
19441 134TH AVE. S.E. Tjumen Zavolzhye 84722

EG

NEED TO PUT THE DELIMATER ( ^ ) AS SHOWN BELOW

2133 JOSEPH DAMON DR ^ Magadan Miass (8)862
624 WOODLAND TRAILS DR ^ Krasnoyarsk Kirsanov 4862
29 WASHINGTON ST. ^ Magadan Cherepovets 8652
19441 134TH AVE. S.E. ^ Tjumen Zavolzhye 84722
Here is the same code I posted to your other thread which asked the same question except you asked for a curly bracket instead of a caret symbol (I changed the symbol in this new code to the caret)...
Code:
Sub InsertBracketAtEndOfUpperCase()
  Dim R As Long, X As Long, Data As Variant
  Data = Range("A2", Cells(Rows.Count, "A").End(xlUp))
  For R = 1 To UBound(Data)
    For X = 1 To Len(Data(R, 1))
      If Mid(Data(R, 1), X, 1) Like "[a-z]" Then
        Data(R, 1) = Application.Replace(Data(R, 1), X - 1, 0, "^ ")
        Exit For
      End If
    Next
  Next
  Range("A2").Resize(UBound(Data)) = Data
End Sub
 
Last edited:
Upvote 0
You can also give this a try

Code:
Function InsertQuote(rng As Range)
    Dim v As String, i As Long, x As Long, l As Long
    x = 0
    v = rng.Text
    l = Len(v)
    For i = 1 To l
        If Mid(v, i, 1) Like "[a-z]" Then
            x = i
            Exit For
        End If
    Next i
    InsertQuote = Trim(Left(rng, x - 2) & "^ " & Mid(rng, x - 1, 200))
    
End Function
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top