How to Insert Data from Notepad to MS Excel: Step-by-Step Guide

Abstract: Import structured text from Notepad into Excel columns using the Data tab and Power Query Editor with correct delimiters.

Created: 2026-10-18 by

To insert data from Notepad into Microsoft Excel, open your workbook and navigate to the Data tab. Select Get Data from Text/CSV, locate your .txt file, and use the Power Query Editor to define delimiters like commas or tabs. After transforming the text into columns, click Load to place the structured data directly into your spreadsheet.

Prepare Your Text File

Before attempting to import data, it is crucial to ensure that your Notepad file is saved in a format that Excel can recognize. While you can save files as standard .txt documents, using a .csv (Comma Separated Values) extension often yields better results for structured data. Open your Notepad application and enter your data. If your information consists of multiple fields per row, such as names followed by email addresses, you must separate these fields with a consistent delimiter. A comma is the most common choice, but a tab or pipe character may also be used depending on your needs.

Once your data is entered, go to File and select Save As. In the dialog box, choose the location for your file and set the file type to CSV UTF-8 or Text Files (*.txt). This step ensures that special characters are handled correctly, preventing issues similar to those described in How to Change Excel Character Set?. Saving with the correct encoding prevents garbled text when the file is later opened in Excel. Ensure that each record occupies its own line within the Notepad document. This vertical structure allows Excel to distinguish between different rows of data during the import process.

Import via the Data Tab

The most reliable method for transferring data from Notepad to Excel involves using the modern data connection tools found in recent versions of Microsoft Office. Start by opening a blank workbook or the specific sheet where you wish to place the new information. Navigate to the top ribbon and click on the Data tab. Within the Get & Transform Data group, look for the option labeled From Text/CSV. Clicking this button opens a file explorer window that allows you to browse your computer for the Notepad file you prepared earlier.

Select your target file and click Import. Excel will not immediately dump the raw text into cells; instead, it opens a preview window known as the Power Query Editor. This intermediate step is vital because it gives you control over how the text is parsed. In the preview pane, you will see a dropdown menu labeled Delimiter. Here, you must specify which character separates your data points. If you used commas in Notepad, select Comma. If you used tabs, select Tab. Adjusting this setting dynamically updates the preview, showing you exactly how the data will split across columns.

Transform and Load Data

After selecting the appropriate delimiter, review the preview to ensure that every piece of data has landed in its own column. If some columns appear merged or split incorrectly, return to the Delimiter dropdown and try an alternative separator. You may also need to adjust the data type for specific columns. For instance, if a column contains numbers that Excel treats as text, you can change the icon next to the column header from ABC to 123. This transformation ensures that mathematical operations can be performed on the imported data later.

Once the preview looks accurate, click the Close and Load button located in the top left corner of the Power Query Editor. Excel will process the query and place the formatted table into your worksheet. The data will start at the active cell, typically A1, unless you have selected a different range beforehand. This method creates a live connection to the source file, meaning if you update the Notepad text and refresh the query in Excel, the spreadsheet will automatically reflect those changes. This dynamic link is far superior to simple copy-pasting, especially for large datasets that require frequent updates.

Alternative Manual Methods

If you are working with an older version of Excel that lacks the Get & Transform features, or if you only need to move a small amount of data quickly, manual methods remain viable. You can simply highlight all the content in your Notepad window using Ctrl+A, then copy it with Ctrl+C. Switch to Excel, select the destination cell, and paste with Ctrl+V. However, pasting raw text often results in all data appearing in a single column, separated by spaces or tabs rather than distinct cells.

To fix this issue after pasting, use the Text to Columns feature. Go to the Data tab and click Text to Columns. Choose Delimited and click Next. Check the box corresponding to your separator, such as Tab or Comma. Preview the result at the bottom of the wizard and click Finish. This approach mimics the automatic parsing done by Power Query but requires more manual clicks. It is important to note that pasting does not create a persistent link to the original file. Any future edits to the Notepad document will require you to repeat the copy and paste process. For complex data structures, consider reviewing Copying to Microsoft Excel with specs of text for additional formatting tips.

Handling Common Errors

Users often encounter errors where dates or zip codes lose their leading zeros after import. Excel tends to treat these as numerical values, stripping away non-significant digits. To prevent this, you can format the destination cells as Text before importing, or use the Power Query editor to explicitly set the data type to Text. Another common issue arises when the Notepad file contains mixed delimiters. If your data uses both commas and tabs inconsistently, the import will fail or produce misaligned columns. In such cases, clean the data in Notepad first to ensure uniformity.

If the import fails entirely, check the file path for special characters or spaces that might confuse the query engine. Shortening the file name and moving it to a simpler directory like the Desktop can resolve many connectivity issues. Additionally, ensure that Excel is not currently holding a lock on the file, which can happen if the file was previously opened in another program. Closing any other applications accessing the text file usually resolves permission conflicts.

Frequently Asked Questions

Can I import a Notepad file without using the Data tab?

Yes, you can open the text file directly through the File menu by selecting Open and changing the file type filter to All Files. However, this method often imports the entire text block into a single cell, requiring manual cleanup. Using the Data tab provides better control over the initial parsing of your data.

Why are my dates appearing as text strings after import?

This happens because Excel cannot automatically detect the date format from plain text. You should use the Power Query Editor to change the column data type to Date. Alternatively, apply the Text to Columns wizard after pasting to force Excel to re-evaluate the cell contents.

Does this method work for very large files?

Power Query is designed to handle millions of rows efficiently. For extremely large datasets, the import process might take longer, but it remains stable. Avoid using copy-paste for large volumes as it can cause Excel to freeze or crash due to memory constraints.

How do I update the data in Excel if I edit the Notepad file?

If you used the Data tab import, you have created a connection. Simply right-click the imported table in Excel and select Refresh. Excel will pull the latest data from the updated Notepad file automatically.

What if my data contains commas inside quotes?

Power Query handles quoted text intelligently. If your Notepad file uses double quotes around fields containing commas, the import will respect those boundaries and not split the field incorrectly. Ensure your Notepad file follows standard CSV formatting rules for best results.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More