Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
you might also try a function:
Function riplace(cell As Range, opcja As Integer) As String For i = Len(cell) To 1 Step -1 If Mid(cell, i, 1) = Chr(32) Then counter = counter + 1 If counter = 2 Then If opcja = 1 Then riplace = CStr(Left(cell, i - 1)) ElseIf opcja = 2 Then riplace = Right(cell, Len(cell) - i) End If End If End If Next i End Function 2nd argument of the function determins which part of an address to retrieve: 1 is for 2/3, 2/3-4, Unit 2, 3, Unit 2/3 2 is for Some Street |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Splitting Address Info - Text to Columns | Excel Discussion (Misc queries) | |||
How do I avoid excel change absolute address to relative address | Excel Discussion (Misc queries) | |||
Splitting Numeric data from Text (Street Address Help) | Excel Discussion (Misc queries) | |||
Splitting comma separated lines of an address for mail merge. | Excel Discussion (Misc queries) | |||
How do I import Office address book to Outlook Express address bo. | Excel Discussion (Misc queries) |