To move data from a doc file (such as a .docx or .txt file) into Excel Online, you must copy the text from the document and paste it into the spreadsheet, or import the data using the Data tab if the file is formatted as a CSV. Because Excel Online is a cloud-based spreadsheet tool and Word/Docs are word processors, there is no single "convert" button; you must transfer the data manually or via a structured file format.
What You'll Need
- A Microsoft account (to access Excel Online).
- A web browser (Chrome, Edge, Safari, or Firefox).
- The source document file containing the data you want to move.
- An internet connection.
Step-by-Step
Depending on how your data is organized in the document, choose one of the following two methods. Note that menu labels may differ slightly based on your browser version, region, or Microsoft 365 subscription level.
Method 1: Copy and Paste (Best for small tables or lists)
- Open your document file (Word, Google Docs, or Notepad) on your computer.
- Highlight the text or the table you wish to move into Excel.
- Right-click the highlighted area and select Copy, or press
Ctrl + C(Windows) orCmd + C(Mac). - Open your web browser and navigate to the Excel Online home page.
- Open an existing workbook or create a New blank workbook.
- Click on the cell where you want the data to begin (usually cell A1).
- Right-click the cell and select Paste, or press
Ctrl + V(Windows) orCmd + V(Mac). - If the data pastes into a single column instead of multiple cells, look for the Paste Options icon that appears near the pasted data and select Match Destination Formatting or use the Text to Columns feature if available in your version.
Method 2: Importing a Structured File (Best for large datasets)
If your "doc file" is actually a plain text file (.txt) or a comma-separated values file (.csv), you can import it directly.
- Open your document and ensure the data is separated by commas or tabs.
- Save the file as a .csv (Comma Separated Values) format.
- Open Excel Online and create a new blank workbook.
- Go to the Data tab in the top ribbon.
- Select Get Data or From Text/CSV.
- A file browser window will appear. Select the file from your local drive or OneDrive and click Open.
- A preview window will show how Excel intends to split the data into columns. Check that the "Delimiter" (comma, tab, or semicolon) is correct.
- Click Load to bring the data into the spreadsheet.
Common Mistakes
- Pasting without cleaning: Pasting a long paragraph from a Word doc into Excel often puts the entire paragraph into one cell, making it useless for data analysis. Always ensure your data is in a list or table format before copying.
- Ignoring delimiters: When importing CSVs, choosing the wrong delimiter (e.g., choosing "Semicolon" when your file uses "Commas") will result in all your data staying in one column.
- Merging cells in the source: If your Word document has merged cells in a table, Excel may struggle to align the rows and columns correctly during a paste.
Tips
- Use Tables: If you are creating the document in Word first, use the Insert > Table feature. Excel recognizes Word tables much more accurately than text separated by spaces.
- Clean Data First: Remove any unnecessary headers, footers, or decorative images from your document before copying the data to avoid "junk" cells in your spreadsheet.
- Check Formatting: After pasting, highlight your columns and double-click the boundary between column headers to automatically adjust the width to fit your text.
Troubleshooting
If the data does not transfer correctly, try these steps in order:
- Refresh the Page: If Excel Online becomes unresponsive during a large paste, refresh your browser. Since it autosaves, you will likely only lose a few seconds of work.
- Paste as Plain Text: If the formatting looks strange, try pasting the data into a plain text editor (like Notepad or TextEdit) first, then copying it from there and pasting it into Excel. This strips away hidden Word formatting.
- Check File Permissions: If you cannot import a file via the Data tab, ensure the file is not currently open in another program, as this can sometimes lock the file from being uploaded.
- Sign Out and In: If the "Get Data" options are greyed out, sign out of your Microsoft account and sign back in to refresh your license permissions.
Frequently Asked Questions
Can I convert a Word doc to Excel Online automatically?
No, there is no official "one-click" converter. You must either copy and paste the content or save the data as a CSV file to import it.
Why does all my data go into one cell?
This happens when Excel doesn't recognize a "delimiter" (like a tab or comma) between your words. Try using the "Text to Columns" feature or ensure you are copying a proper table from the source document.
Will my formulas from a local Excel file work in Excel Online?
Most standard formulas work perfectly. However, some advanced macros (VBA) do not run in the web version of Excel; they only work in the desktop application.
Can I import a PDF doc file into Excel Online?
Excel Online cannot import PDFs directly. You must first convert the PDF to a Word doc or CSV using a converter, then follow the steps outlined above.
Is there a limit to how much data I can paste?
While Excel can handle millions of cells, pasting massive amounts of text from a document can cause your browser to freeze. For very large datasets, always use the "Import from Text/CSV" method instead of copying and pasting.