Import Best Buy prices into Excel

An example of web scraping from BestBuy.com into Excel.

We’ve already talked about getting prices from the Amazon.com web site into Excel with automatic updates. Now let’s look at how to do it for BestBuy.com prices.
Excel has had a method of web scraping for many versions you can find it at Data | Get External Data | from Web.

Best Buy scrape 1 image from Import Best Buy prices into Excel at Office-Watch.com



Place your cursor in the cell where you want the scrape results to go. For reasons that’ll become obvious, it’s best to insert the results into a separate worksheet for each product.
Go to Get External Data | From Web. Paste in the link to the Best Buy product page you want to check and press Go. You can browse in the Web Query window but it’s usually easier to find the page in a normal browser then paste the link into the Address field of the Web Query.

Best Buy scrape 1 image from Import Best Buy prices into Excel at Office-Watch.com



As you can see above, there’s only one main table you can select on the Best Buy Page (unlike Amazon product pages which have many smaller tables to select from). Click on the arrow top left to select most of the web page, then Import to continue.
As you can see, the web page is imported with text lines in each row. That’s why we suggested importing each page to a separate worksheet.

Best Buy scrape 2 image from Import Best Buy prices into Excel at Office-Watch.com



If you scroll down, you’ll see the price in a separate cell, approximately row 278.

Windows 10 from people 'in the know'

A detailed and independent look at Windows 10, especially written for the many people who use Microsoft Office.

Fully up-to-date with coverage of the Anniversary 2016 major update of Windows 10.

This 670 page book shows you important features and details for all serious Windows 10 users.

Best Buy scrape 3 image from Import Best Buy prices into Excel at Office-Watch.com



Notice that Excel has imported the number 829.99 and automatically converted it to Currency formatting.


Get the price

How to extract that price from all that mess of data?

If you’re working on a small scale, with just a few products for your personal comparison, it’s probably enough to find the right cell (A278) and link to it from your main analysis sheet. Hopefully the cell reference won’t change over a short period of time, if it does change you’ll get an error which is easy to see and fix.

To automate finding the price cell the best we could do is using the MATCH() function to search for the cell ‘Free Shipping’ then subtract one to get the row above that. =MATCH(“Free Shipping”,A:A,0)-1 returns the row reference (278) not the value. Use INDEX to get the value from the cell reference e.g.

=INDEX(‘Lenovo from Best Buy’!A:A, MATCH(“Free Shipping”,’Lenovo from Best Buy’!A:A,0)-1 )