Splitting the contents of a cell
I do this.
Copy Column A into column B (insert a new column B if you need to)
Select column A:
edit|replace
what: _[* (underscore = spacebar)
with: (leave blank)
replace all
Select column B
edit|Replace
what: *[
with: (leave blank)
replace all
With column B still selected
edit|replace
what: ]*
with: (leave blank)
replace all
Keith wrote:
I have been given a list of hospitals in the UK. The format is:
The Royal Infirmary of Edinburgh [Edinburgh]
As you can see the city the hospital is located in is enclosed in square
brackets. What I want to do is split it so that the hospital name is in
column A and the City is in column B
Is there anyway to do this without having to manually go through each one.
Also the entries are hyperlinks, does this make any difference?
--
Dave Peterson
|