by Allen Wyatt
(last updated January 7, 2017)
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:
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:
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, and 2016.
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!
When developing formulas, you may need to reference the very last value in a particular column. This can seem perplexing, ...Discover More
Want to move data from one worksheet to another based on a text value in a column. There are a couple of ways you can ...Discover More
Want to use the maximum space possible for displaying information on screen? You'll want to learn how to use the ...Discover More
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.