let me explain:
1 colunn
234567-roma
345697-new york
431414-lancsternshein
413444-madri
I need to take the name of the city to another colunn like this:
1º colunn 2º colunn
234567 roma
how I do that?
thanks
let me explain:
1 colunn
234567-roma
345697-new york
431414-lancsternshein
413444-madri
I need to take the name of the city to another colunn like this:
1º colunn 2º colunn
234567 roma
how I do that?
thanks
These formulas will split the data as you have requested.
=LEFT(A1,FIND("-",A1)-1)
=RIGHT(A1,LEN(A1)-FIND("-",A1))
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
A solution without formulas :
Data - text to columns
Select "Delimited"
Input "-" ( no quotes) as delimiter
Finish
( if you always have 6 numbers followed by the dash, the " Fixed width" option might also do the job but you'll be left with a third column with the dash
Another option
Select data
Data menu
Text To Columns
Delimited option
Tick Other Checkbox & remove tick from all other checkboxes
enter - in the box to the right of the Other checkbox
Next
Set column data format if required
Finish button
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
thanks people,
Pol
Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks