Text to Columns with a return seperation - excel

I have a cell in Excel with 6 or so names in them, formatted as lastname,firstname, [line break]
lastname,firstname, [line break]
etc.
I need to be able to get these names into outlook as contacts, which only recognizes lastname,firstname; lastname,firstname; etc.
Is there a way to use text to columns to break out these names based upon the line break? Or is there some other way you can recommend to get the names email ready?

This isn't really a programming question, but there is a way, but it's kind of a lot of work.
Click on the cells (columns) you want to split apart and format.
Click on Data → Text to Columns
Make sure "Delimited" is selected.
In the Wizard, click "Next"
Click the "Space" checkbox
Click "Next"
Click "Finish"
Click on a cell of any empty column.
Type: =(
Click on the first cell with the Lastname,Firstname
Type: &";"&
Click on the next cell with Lastname,Firstname
Type: &";"&
Repeat steps 11 and 12 until you've finished
Type: )
Hit "Enter"
You should have your names formatted as:
Lastname,Firstname;Lastname,Firstname
It's a lot of work, but it does what you requested.

Figured it out. You can do a find and replace on the carriage return using control+J as what you're searching for, and ";" to replace it. Then do another find and replace on ", " and replace with "". It then added ; to each carriage return, and deleted the extra comma.

Related

How should i include space between name and number and make them in 2 columns in excel

I have tried different ways to include space between name and number in notepad++ excel etc. Please suggest me to sort out my problem to make 2 columns in excel.
I have a list of contacts like :
Name contact
abcd+1234
xyz+789
efgh+3456
I want that to be
Name Contact
abcd +1234
xyz +789
efgh +3456
The steps to do this in excel are:
Highlight the column containing the values
From the Data ribbon, select 'Text to columns'
Select the 'delimited' radio button and click 'next'
Uncheck 'Tab' and instead check the box for 'Other'
Within the text field for 'Other' type +
Click 'Finish'
Pictures of each step follow:
In Notepad++, just enable reuglar expressions in search box (after you hit Ctrl+F) and enter such regex: (.+)[+](.+) and in Replace paste: \1 + \2.

Excel formatting time as regular numbers

I've pasted into an excel file lots of number such as 43:11 or 22:06. These represent goals scored and goals against. However excel is recognising them as dates and times. I want it so that I have two columns with 43 and then 11 for example, instead of 43:11. Whatever I have tried it has become confused because it things of it as a time. I've tried formatting as text, numbers etc. Any ideas?
This will work in Excel 2016 (other versions have the same functionality but the menus may be slightly different):
Copy your numbers to the clipboard
In Excel, select the Home ribbon
Click the downward arrow under the Paste button (the leftmost icon on the ribbon).
Select Use Text Import Wizard
Wizard appears. Make sure Delimited is checked and My data has headers is not checked.
Click Next.
In the Delimiters group, uncheck Space, check Other and in the box next to it type :
Click Finish
If you are typing values into a cell, then format the cell as Text before typing. If you are importing material from an external source, then tell the Import Wizard that the field containing these values is Text.

Looking to sort by first name and last name on excel

I am looking to sort first name and last name into two different columns, they are currently in a cell in the following format "lastname, firstname". Is there a way to separate them because of the comma in between?
Thanks :)
In Excel 2013:
Make sure you have a blank column to the right of your column
Highlight your entire column
Click the 'Data' tab on the ribbon
Click 'Text to Columns'
Select 'Delimited'
Select 'Comma' or whatever your delimiter is
Click finish

How to import a text log file into a excel columns

I have some data of form
[39645961,-79966658]358920045121212[0.75]2013-01-30 20:47:52
[39646124,-79966771]358920045121212[0.5]2013-01-30 20:47:54
[39646134,-79966733]358920045121212[0.5]2013-01-30 20:47:56
[39646123,-79966723]358920045121212[0.5]2013-01-30 20:47:58
[39646144,-79966724]358920045121212[0.5]2013-01-30 20:48:09
......
How can I import them into an excel file into separate columns. like
39645961 -79966658 358920045121212 0.75 2013-01-30 20:47:52
39646124 -79966771 358920045121212 0.5 2013-01-30 20:47:54
39646134 -79966733 358920045121212 0.5 2013-01-30 20:47:5
Any ideas?
If it's not too frequent task:
Copy-paste the text to Excel (will occupy one column)
Data - Text to Columns (Excel 2003)
Delimiters: Comma and Other: ]
After completing the operations, insert a column after the remaining non-splitted fragment (358920045121212[0.75) and repeat Text to Columns for this column only with Other delimiter as [.
1) Copy the data into a text file, like Notepad.
2) Use find and replace to replace bracket characters with a tab character.
You can not directly type a tab character into the replace field, because it will just move your cursor to the next field. To get around this:
Open another Notepad window and press tab, then copy the tab into the replace field of the original Notepad window. Hit replace and repeat this process with space and comma characters.
3) Save and close the notepad file.
4) Open the notepad file in Excel. (choose file, open, and don't forget to change the file type in the open dialog from "All Excel Files" to "All Files"
5) This will open the Text Import Wizard. Hit next, next and finished, and the data should show up in separate columns
If you want to do it strictly in Excel, you will have to extract the individual data elements from each string using a combination of text functions, including SEARCH or FIND, LEFT, MID and RIGHT. The following formulas show one wqy to extract each element from one of the strings, which I have assumed is in A1.
=MID(A1,2,SEARCH(",",A1)-2)
=MID(A1,SEARCH(",",A1)+1,SEARCH("]",A1)-SEARCH(",",A1)-1)
=MID(A1,SEARCH("]",A1)+1,SEARCH("]",A1)+SEARCH("[",MID(A1,SEARCH("]",A1),99))-SEARCH("]",A1)-2)
=MID(A1,SEARCH("[",A1,2)+1,SEARCH("]",MID(A1,SEARCH("[",A1,2)+1,99))-1)
=MID(A1,SEARCH("????-??-??",A1),10)
=RIGHT(A1,8)
You would enter these formulas horizontally to the right of A1, then copy them down.
There is a much simpler way - use a third party piece of software.
The one I used costs me very little for the year, but means i don't need to mess around with trying to get it right.
Its the only tool i found which isn't a monthly subscription as well.
Its a desktop based application.
https://onpage.rocks/product/server-log-tool/

Is there a way to transfer MSWord numbering bullets to MSExcel column?

I have been using MSWord 2010 to compose list of questions. These questions are organized in single MSWord document, using numbering - 1. first question, etc...
I was wondering could contents of each bullet be transffered to MSExcel cell? So if i have 20 questions, i would have cell with 20 rows, each containing one question.
I am asking this because i have 300 questions that i want to import to excel.
It's possible to copy your numbered bullets from Excel to Word and then break them up using Excel worksheet functions. However, it's real easy to just do it with the built-in Excel commands.
In Word:
Increase the width on the hanging indent on your numbered list. It will make the conversion in Excel easier to deal with.
Select your bullets and copy them.
In Excel:
"Paste Special" the copied text into Excel using the Match Destination Formatting option.
Select the cells you pasted the bullets by the number of digits in the bullets (i.e., first do 1-9, then do 10-99, etc.)
With the cells selected, choose the Text to Columns command from the Data tab on the ribbon.
Make sure that the 'Fixed Width" radio box is selected on the dialogue box that comes up, then move to the next step.
Adjust the break lines so that there are three fields: one with the number + period, another the spaces between the numbers and text, the third the text.
Moving to the next step - select the second field (the spaces) and click the "Do not import column (skip) radio button.
Click finish and the bullets are imported.
The above answer is best if you have an already established list. The best workflow I've found for this is to create a table to work in, in word. That table then copies perfectly into cells in excel, allowing you to create a structure that will pass between the tow docs seamlessly.

Resources