Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Seperating values
Hello,
I have a list of about 5000 cities with their associated state (seperated with a coma). The list of cities are in colomn "A". How can I automatically have the city copied into column "B" and the state in column "C" without having to use the TEXT TO COLUMN option? For the state, I can use "=RIGHT(A2,2)" so I'm ok with that. It's how do I do the same for the city as every cities have different amount of characters but are all located in front of a coma. Thanks!!! |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Seperating values
Assuming everything is in format of: city name, ST
State, as you said: =RIGHT(A2,2) City would be: =LEFT(A2,LEN(A2)-4) -- ** John C ** Please remember if your question is answered, to mark it answered :). It helps everyone. "One-Leg" wrote: Hello, I have a list of about 5000 cities with their associated state (seperated with a coma). The list of cities are in colomn "A". How can I automatically have the city copied into column "B" and the state in column "C" without having to use the TEXT TO COLUMN option? For the state, I can use "=RIGHT(A2,2)" so I'm ok with that. It's how do I do the same for the city as every cities have different amount of characters but are all located in front of a coma. Thanks!!! |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Seperating values
Thank you!!! It worked like a charm...
"John C" wrote: Assuming everything is in format of: city name, ST State, as you said: =RIGHT(A2,2) City would be: =LEFT(A2,LEN(A2)-4) -- ** John C ** Please remember if your question is answered, to mark it answered :). It helps everyone. "One-Leg" wrote: Hello, I have a list of about 5000 cities with their associated state (seperated with a coma). The list of cities are in colomn "A". How can I automatically have the city copied into column "B" and the state in column "C" without having to use the TEXT TO COLUMN option? For the state, I can use "=RIGHT(A2,2)" so I'm ok with that. It's how do I do the same for the city as every cities have different amount of characters but are all located in front of a coma. Thanks!!! |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Seperating values
Hi,
Question - why not use the text to columns wizard? -- Thanks, Shane Devenshire "One-Leg" wrote: Hello, I have a list of about 5000 cities with their associated state (seperated with a coma). The list of cities are in colomn "A". How can I automatically have the city copied into column "B" and the state in column "C" without having to use the TEXT TO COLUMN option? For the state, I can use "=RIGHT(A2,2)" so I'm ok with that. It's how do I do the same for the city as every cities have different amount of characters but are all located in front of a coma. Thanks!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
seperating a column into two | Excel Discussion (Misc queries) | |||
seperating values from text | Excel Discussion (Misc queries) | |||
Seperating First and Last Names | Excel Discussion (Misc queries) | |||
seperating dates & values | Excel Discussion (Misc queries) | |||
Seperating worksheets | Excel Discussion (Misc queries) |