Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Copy Texts from Word to Excel and paste each word into a cell in a column

Featured Replies

Hi,

 

I want to copy the text in Word to excel, and make each word in a cell in a column .

 

For example, the text in Word document is:  " this is a sample  ",  copy to Excel as:

 

this

is

a

sample

 

 

Can I use Word to do that automatically? I'm using word2010

 

 

Maybe Google "Excel, Parse Text".

Or use the word processor to find/replace all the 'spaces' and replace with a 'tab' or 'comma' and then import into the spreadsheet.

 

Some word processors actually allow you to convert text in situ, into a cell format inside the word processor.

 

1) Copy the sentence into excel (it will appear in one cell)

2) In the [Data] wizard (top line of Tabs in the excel window select 'Text to Columns' and select 'space' delimited

3) Copy the row of cells, re-paste as 'paste special' select transposed

 

https://www.extendoffice.com/documents/excel/3475-excel-split-sentence-into-words.html#a1

Edited by richard_smith237

Hi, 

 

You can do that in excel . In word you can use "Find and Replace" to  replace the space between two words as a  line break. then copy them to excel. Just select all the text, then  enter a space in  “Find what” text box,  enter “^p”  in “Replace with” text box. 

 

Or you can just use VBA to do that for you. I find a code may help. see below:

 

Sub CopySelectParagraphWordByWordToExcel()
 
  If Selection.Range <> "" Then
    Selection.Style = ActiveDocument.Styles("Normal") 
 
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
      .Text = " "
      .Replacement.Text = "^p"
      .Forward = True
      .Wrap = wdFindStop
      .Format = False
      .MatchCase = False
      .MatchWholeWord = False
      .MatchByte = True
      .MatchWildcards = False
      .MatchSoundsLike = False
      .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
 
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
      .Text = "^p^p"
      .Replacement.Text = "^p"
      .Forward = True
      .Wrap = wdFindStop
      .Format = False
      .MatchCase = False
      .MatchWholeWord = False
      .MatchByte = True
      .MatchWildcards = False
      .MatchSoundsLike = False
      .MatchAllWordForms = False
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    Selection.Copy
 
    MsgBox ("Now you can just open a Excel worksheet to paste the text")
  Else
    MsgBox ("There is no selected text ")
  End If
 
End Sub

 

And here is the link of the macro ,

 

https://www.datanumen.com/blogs/2-ways-copy-texts-word-excel-word-separate-cell/

 

Good luck.

 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.