Skip to main content

How to add comma in the end of each line in Word document?

Author Sun Last modified

Suppose you have a list of data in a Word document, and now you want to add a comma at the end of each line, like in the screenshot below. How can you do it quickly without adding the commas manually one by one?

List of data in a Word document with commas added at the end of each line

Add a comma to the end of each line in a document using Find and Replace

You can easily add a comma to the end of each line in Word by using the Find and Replace function. Here's how:

  1. Select the content where you want to add a comma at the end of each line, then press Ctrl + H to open the "Find and Replace" dialog box.
  2. In the dialog box, type "^p" (indicating the end of a line) in the "Find what" textbox, and ",^p" (to add a comma at the end of each line) in the "Replace with" textbox.
    Find and Replace dialog with ^p in the Find what textbox and ,^p in the Replace with textbox
  3. Click "Replace All". A dialog will appear asking if you want to search the rest of the document. Click "Yes" or "No" depending on your needs.
    Dialog box saying 'Do you want to search the rest of the document?'

Commas have now been added to the end of each line in the selected content.


Add a comma to the end of each line in multiple documents with Kutools for Word

Using Kutools for Word's "Batch Replacement" feature offers a major advantage over Word's built-in Find and Replace, especially for processing multiple documents. You can apply the change across many files in just a few clicks.

Kutools for Word, equipped with AI πŸ€–, offers over 100 handy features to simplify your tasks.
  1. On the "Kutools" tab, select "Batch Replacement".
    Batch Replacement option on the Kutools tab in Word ribbon
  2. In the "Batch Find and Replace" dialog box, do the following:
    1. Click "Add Row" to insert a rule row.
    2. In the "Find" field, type "^p" (indicating the end of a line), and in the "Replace" field, type ",^p" (to add a comma at the end of each line).
    3. Click "Add", then choose "Add Files" or "Add Folder" to include the documents where you want to add a comma to the end of each line.
    4. Click "Replace" to process all selected documents.
      Batch Find and Replace dialog with ^p in the Find what textbox and ,^p in the Replace with textbox
  3. The dialog will switch to the "Preview Result" tab showing how many replacements were made. Click "Close" to finish.
    Batch Find and Replace dialog with preview results

That's it! A comma has been added to the end of each line in each selected document.

Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!

Add a comma to the end of each cell in Excel with Kutools for Excel

If you want to add a comma at the end of each cell in Excel, use Kutools for Excel's "Add Text" utility to complete the task quickly.

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

After installing Kutools for Excel, follow these steps:

  1. Select the cells you want to modify, then click "Kutools" > "Text" > "Add Text".
    Add Text option on the Kutools tab on the ribbon
  2. In the "Add Text" dialog, type a comma "," into the "Text" field and check the "After last character" option.
    Add Text dialog box
  3. Click "Apply" or "OK" to insert a comma at the end of each selected cell.
    List of data in Excel with commas added at the end of each cell

Demo: How to add comma at end of cell or text in Excel

 

Tabbed Browsing & Editing for Multiple Word Documents/Excel Workbooks, Just Like in Chrome and Edge!

Just like browsing multiple webpages in Chrome, Safari and Edge, Office Tab lets you open and manage multiple Word documents or Excel workbooks in one Word window or Excel window. Switching between documents or workbooks is now simple with a click on their tabs!

Try Office Tab for free now!

Best Office Productivity Tools

Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!

πŸ€– Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...

πŸ“˜ Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...

✏ Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...

🧹 Effortless Clean: Sweap away Extra Spaces / Section Breaks / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...

βž• Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Multiple Pictures / Discover more in the Insert group...

πŸ” Precision Selections: Pinpoint Specific Pages / Tables / Shapes / Heading Paragraphs / Enhance navigation with more Select features...

⭐ Star Enhancements: Navigate to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...

🌍 Supports 40+ Languages: Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Kutools and Kutools Plus tabs on the Word Ribbon
πŸ‘‰ Want to try these features? Download Kutools for Word now! πŸš€
 

Best Office Productivity Tools

Kutools for Word - 100+ Tools for Word