Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (2024)

Do you want an easy way to pull in crypto prices for multiple coins? Using Power Query in Excel, you can accomplish this by connecting to a website such a coingecko.com and downloading the historical values. Below, I’ll show you how you can pull in historical prices for multiple coins at once, and how you can easily update the values in the future.

Here are the steps to download crypto prices and import them into Power Query from coingecko.com:

  1. Connect to the data source using Power Query.
  2. Download the files into a folder.
  3. Combine and Transform the files in Power Query.
  4. Modify the data to make it consistent.
  5. Update the data.

Step 1: Connect to the data source using Power Query

In this example, I’m using coingecko.com as my source but the process may be similar for other sources. As long as the data as in a table format, there may not be a big difference in the process, however, there could be subtle changes in how you get data from one site versus another.

First, navigate to the coingecko.com website to the cryptocurrency’s price history that you want to download. On the historical data tab, there is a link to download the data:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (1)

Step 2: Download the files into a folder

Download this file and save it into a folder. Repeat the process for any other cryptocurrencies that you want to track historical price information for. In this example, I’ve downloaded the price history for Bitcoin, Ethereum, Shiba Inu, and Dogecoin, and saved it within a folder called ‘Crypto’ on my computer:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (2)

Step 3: Combine and transform the files in Power Query

Now that all the files have been downloaded, I can use Power Query to consolidate them. With all the files in a folder, I can go and select to get data From Folder:

Then navigate to the folder which contains your downloads:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (4)

Since you are selecting a folder, you won’t see the individual Excel files that you have saved — this is fine. Only if you were selecting files would you see the actual files. Once you’ve selected the correct folder, click on the Open button.

Next, select the option to Combine &Transform the files. If you get an error saying that it is an unexpected format, you may need to click on Edit on the next screen. This is because in this example, the data is in a comma-separated value format. After clicking edit, make sure you select the option for a CSV document:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (5)

Then, at the next screen, you’ll see that the data has correctly been broken out into columns.

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (6)

This is how the data looks loaded in Power Query:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (7)

Step 4: Modify the data to make it consistent

There are multiple changes that need to be made to the file. The first is to adjust the source.name field so that it reflects the coin and doesn’t include the full filename. To do this, click on the Transform tab and select the option to Extract Text Before Delimiter and use as the delimiter.

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (8)

Then, I’ll rename the first two headers to ‘symbol’ and ‘date’

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (9)

Next, to correctly parse out the date, I’m going to grab the first 10 characters in the field. To do this, select the date column, and on the Transform tab, select Extract and select First Characters:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (10)

Specify 10 for the number of characters, and Power Query will remove the rest:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (11)

I’ll remove the market_cap and total_volume columns since they aren’t needed. The last step involves pivoting the data so that the crypto symbols are going across. To do that, select the symbol column, and on the Transform tab, click on the Pivot Column button:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (12)

Select ‘price’ as the values column. Then, the end result should show the crypto prices going across:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (13)

Step 5: Update the data

Now that the data is all entered in Power Query format, the process of updating it at a later date is fairly straightforward. Simply download the Excel files again, save them into the same folder (overwriting the previous files), and then click on the Refresh Data button on the Data tab:

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (14)

Clicking the button will refresh all the queries and do all the transformations and adjustments that were made earlier. By setting this all up in Power Query, you can easily repeat the process. Just download the latest data, and then click Refresh All.

If you liked this post on Get Crypto Prices for Multiple Coins Into Excel Using Power Query, please give this site a like on Facebook and also be sure to check out some of the many templates that we have available for download. You can also follow us on Twitter and YouTube.

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net (2024)

FAQs

Get Crypto Prices for Multiple Coins Into Excel Using Power Query - HowtoExcel.net? ›

How to Fetch Total Crypto Market Cap Data in Excel. You can call the Crypto Global Market Data endpoint in CoinGecko API to get real-time total crypto market cap data in Excel. For historical global market cap and volume data, use the Global Market Chart endpoint.

How to fetch crypto prices in Excel? ›

How to Fetch Total Crypto Market Cap Data in Excel. You can call the Crypto Global Market Data endpoint in CoinGecko API to get real-time total crypto market cap data in Excel. For historical global market cap and volume data, use the Global Market Chart endpoint.

How to import crypto data into Excel? ›

In Excel, use the "DATA" tab and select 'From Web' to import data from the API. Follow the prompts to connect to the API and retrieve live price data for your chosen cryptocurrencies.

How do you automatically populate crypto price in spreadsheet? ›

Add Real-Time Crypto Prices to Google Sheets (2024 Update)
  1. Identify The Crypto to Import. ‍ What we need to identify is the crypto and its corresponding ticker in Google Finance. ...
  2. Use Formula =GOOGLEFINANCE(ticker) ‍ Using the syntax =GOOGLEFINANCE(ticker), the formula becomes. ...
  3. Press Enter. ‍
5 days ago

How do I get crypto price data? ›

Bitcoincharts offers price and volume data for a variety of cryptocurrencies as well as trade history and market depth metrics for a wide selection of markets. Access cryptocurrency price and volume visualizations under Charts.

How to make a crypto spreadsheet? ›

Step 1: Install Cryptosheets: Get the add-in from their website. Step 2: Connect Data: Launch Excel, go to Cryptosheets, and connect to your data source. Step 3: Retrieve Data: Use Cryptosheets' functions to get specific cryptocurrency data. Step 4: Organize and Analyze: Organize and visualize data using Excel's tools.

How do I extract data from CoinMarketCap to Excel? ›

To pull the data into Excel, we use a web query. Under the Data tab in the ribbon, select Get Data > From Other Sources > From Web. Next, we need to input the URL we want to use and setup our API key as a header item to authenticate with CoinMarketCap. Make sure the Advanced radio button is selected.

How do I download data from CoinMarketCap to Excel? ›

Or it can be done in minutes on Airbyte in three easy steps:
  1. set up CoinMarketCap as a source connector (using Auth, or usually an API key)
  2. set up CSV File Destination as a destination connector.
  3. define which data you want to transfer and how frequently.

Can you track crypto in Excel? ›

Yes. Platforms like Microsoft Excel and Google Sheets allow you to monitor your crypto holdings, track transactions, compute profits and losses, and visualize market trends using various charts and graphs.

Can Excel pull exchange rates? ›

Use the Currencies data type to calculate exchange rates

Enter the currency pair in a cell using this format: From Currency / To Currency with the ISO currency codes. For example, enter "USD/EUR" to get the exchange rate from one United States Dollar to Euros. Select the cells and then select Insert > Table.

Can Excel fetch stock prices? ›

You can get stock and geographic data in Excel. It's as easy as typing text into a cell, and converting it to the Stocks data type, or the Geography data type.

What is the formula for price in crypto? ›

Crypto Price Formula

To calculate the crypto price, divide the total market value by the number of coins in circulation.

Top Articles
Latest Posts
Article information

Author: Ouida Strosin DO

Last Updated:

Views: 5894

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Ouida Strosin DO

Birthday: 1995-04-27

Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

Phone: +8561498978366

Job: Legacy Manufacturing Specialist

Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.