Defeating Date Parsing when Pasting Information

Written by Allen Wyatt (last updated November 19, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Tom notes that the NFL publishes American football standings on their website at http://www.nfl.com/standings?category=league. He wants to copy these standings into an Excel worksheet. However, when he copies and then pastes them, the columns containing win-loss ratios are parsed as dates by Excel. Tom tried formatting the cells before pasting, but the act of pasting seems to override the cell format.

There are actually a few ways you can approach this need, and Tom is off to the right start—you need to format the columns consistent with the data that will be in them. Primarily, you need to format the columns that will contain the win-loss ratios (Home, Road, Conf, etc.) as Text. Then, select the information on the web page and press Ctrl+C to copy it to the Clipboard.

It is at this point that you have options. One option is to select the upper-left cell of where you want the information pasted, and then display the Paste Special dialog box. (Click the down-arrow next to the Paste tool on the Home tab of the ribbon, and then choose Paste Special from the resulting options.) (See Figure 1.)

Figure 1. The Paste Special dialog box.

In the Paste Special dialog box, choose Text and then click OK. Your information is pasted into the worksheet, and the formatting you previously applied is not affected.

Another option is to select the upper-left cell of where you want the information pasted, and then right-click that cell. Excel displays a Context menu, and there is a section in the menu entitled Paste Options. You could select Paste Special from those options and continue as previously described, but just above that option are two icons. If you hover over the right icon, you'll see what it does: Match Destination Formatting. Click on the icon, and the information is pasted without affecting any of the formatting you previously did.

A third option is to select the upper-left cell of where you want the information pasted, and then press Ctrl+V to paste whatever is in the Clipboard. The formatting will look ugly, but you should notice a Paste Options drop-down at the lower-right corner of what you just pasted. Click that drop-down and you can select the same Match Destination Formatting option previously described. The formatting of the paste area reverts to what you had before, and the worksheet cells contain the data you desire.

A fourth option is to use NotePad as an intermediary on the data you want to copy. Copy it from the web page, paste it into Notepad, copy it from Notepad, and paste it into your Excel worksheet. This process strips any formatting from the information and effectively pastes it into your worksheet as "text only," which is equivalent to the first option discussed earlier.

If you are using Excel 2010 or later you have a fifth option: You could use the Power Query add-in to grab the information from the NFL web page. This isn't exactly "pasting" information, but it does allow you to get the data into your worksheet rather painlessly. You can find more information about Power Query for Excel 2010 and Excel 2013 here:

https://support.office.com/en-us/article/Microsoft-Power-Query-for-Excel-Help-2b433a85-ddfb-420b-9cda-fe0e60b82a94

In Excel 2016 Microsoft (as they are infuriatingly apt to do) changed the name of Power Query to Get & Transform. More information about this tool can be found here:

https://support.office.com/en-us/article/Get-Transform-in-Excel-2016-881c63c6-37c5-4ca2-b616-59e18d75b4de

Either PivotQuery or Get & Transform allows you to connect to the web page and import the tabular data into your worksheet. An added advantage of using these tools is that a link is established between your worksheet and the web page so that you can easily update the information in the worksheet as desired.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3193) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Sorting with Graphics

If the graphics that you insert in your worksheet meet a couple of simple requirements, it is possible to have those ...

Discover More

Discovering Printer Drift

How accurate is your printer when it comes to placing information on the printed page? The simple technique described in ...

Discover More

Frequent Workbook Recovery Prompts

When you open a workbook, Excel examines that workbook to make sure it can understand the data it contains. This can lead ...

Discover More

Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!

More ExcelTips (ribbon)

Colors No Longer Work

It can be disconcerting if you are editing a workbook and can no longer change colors for cells in the workbook. This tip ...

Discover More

Swapping Two Cells

If you need to swap the contents of two cells in your worksheet, Excel provides a number of ways you can approach the ...

Discover More

Typing Check Marks into Excel

Need to enter a check mark into a cell? There are a number of ways you can get the desired character, depending on the ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 8?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.