Volume Weighted Average Price for FX Rates

DumbFinanceBro

New Member
Joined
Apr 19, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Trying to find the average fx price for all trades done in the market (buys and sells) but noticed that sometimes when doing a vwap the average price is very different than where we actually traded. If you look at the image, we bought 890,300 dollars worth of USD/CAD at an average price of 1.354758 and sold 884,300 worth of USD/CAD at an average price of 1.35411. Formulas for those are at the top right. Problem is, average fx rate comes out to 1.44967 which is clearly very far from where we transacted in the market. Is the VWAP formula I'm using wrong or do negatives values (for sells) need to be removed from the formula entirely for it to work?
 

Attachments

  • FX.PNG
    FX.PNG
    94.5 KB · Views: 21

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
To actually test your files, we need data in an XL2BB format or a file uploaded to a third party, ie Dropbox.com or box.net. We cannot manipulate data in a picture. There may be more suitable formula to resolve your issue, but without being able to test, well.......
 
Upvote 0
To actually test your files, we need data in an XL2BB format or a file uploaded to a third party, ie Dropbox.com or box.net. We cannot manipulate data in a picture. There may be more suitable formula to resolve your issue, but without being able to test, well.......
Great idea, just uploaded the doc to google drive
 
Upvote 0
The negative values for sells will cause the calculation to go wrong unless you take the absolute values for the volume weighted price. This formula will give you the correct value:

Excel Formula:
=(SUM(R2*S2)-SUM(R3*S3))/(R2-R3)
It takes account of row 3 being negative i.e a sell
 
Upvote 0
Solution
The negative values for sells will cause the calculation to go wrong unless you take the absolute values for the volume weighted price. This formula will give you the correct value:

Excel Formula:
=(SUM(R2*S2)-SUM(R3*S3))/(R2-R3)
It takes account of row 3 being negative i.e a sell
ok wasn't sure absolute values was the way to go but have a second opinion, thanks.
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top