Excel Tip 2 - Use SUMPRODUCT for Weighted Average

Sep, 24, 2012     By Vikram Murarka    2 comments

Here's another very important MS Excel tip, one that I got from one of our clients. It has made my life so much simpler. Thank you, Krishnan!

Need for Weighted Average

Let us say there is a company that exported goods worth $ 5 million and received payment at a Dollar-Rupee rate of 45.45 on 17-Aug-11. It then exported goods worth $ 1 million and received payment at a rate of 56.00 on 23-May-12.

What is the average rate at which the exports have taken place? You will be surprised at the number of people who reply saying 50.7250, the simple average of 45.60 and 56.00. However, as you know, the correct answer is actually 47.21, since the larger amount of $ 5 million was exported at the lower rate of 45.45 in August 2011, as compared to the smaller amount of $ 1 million which was exported at 56.00 in May 2012. The rate of 47.21, the weighted average rate calculated as (45.45 x 5 mln + 56.00 x 1 mln)/ 6 mln.

Not only do the export/ imports/ forward contract/ option transactions take place at different exchange rates, the transaction amounts are also always different. Therefore, there is always a need to calculate the weighted average rate at which forex transactions have taken place. Since the transaction amounts are different, calculating simple average is simply wrong.

Thankfully, while a few people do erroneously make do with a simple average, most people calculate the Weighted Average Exchange Rate. Unfortunately, the way most people (I was one of them) do the calculation is quite cumbersome.

Old Way of Calculating Weighted Average

Old Way of Calculating Weighted Average

The way I used to calculate weighted average earlier in Excel is as follows:

Calculate the Rupee equivalent of the Dollar amount
Sum the Dollar amounts
Sum the Rupee amounts
Divide the sum of Rupee amounts by the sum of Dollar amounts


SUMPRODUCT Way of Calculating Weighted Avg

SUMPRODUCT Way of Calculating Weighted Avg

Note the SUMPRODUCT function in the formula bar. The weighted average is now calculated as SUMPRODUCT(range with Dollar amounts, range with Export rates)/sum of Dollar amounts.

Much simpler, isn't it? Thanks are due to Krishnan, my client at Marico Ltd, and to MS Excel. I hope this function will be as useful to you as it is to me!

Vikram Murarka

Chief Currency Strategist at KSHITIJ.COM. Likes to look at the markets from many different angles. Weaves many conventional and unconventional technical analysis techniques and fundamental analysis into a global macro perspective. Likes to take the road less traveled.

Leave a Reply

  1. Good post, do you have any others on this topic?

Dollar Rupee Forecast. Get a Free Trial


15Jun17 USDJPY 111.05: Broken out of triangle. Target 113 now. Could reach in June itself https://t.co/ztg40LTXlH https://t.co/ztg40LTXlH

12 days ago  

13Jun17, EURUSD 1.1195: First big break above 21-mth MA in last two mths, since 1.38. https://t.co/pqVUuEElwk https://t.co/pqVUuEElwk

15 days ago  

#Gold 1284... Immediate support being 1280, Gold could head towards major resistance near... https://t.co/GKl5IBWuPG https://t.co/GKl5IBWuPG

20 days ago  

Caution time for Euro as it shows great upside momentum but the resistance cluster overhe... https://t.co/h22tX9jG5I https://t.co/h22tX9jG5I

22 days ago