+ Reply to Thread
Results 1 to 39 of 39

Quickly convert column of currency amounts to other currency via historical data?

  1. #1
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Quickly convert column of currency amounts to other currency via historical data?

    Hi

    I traded crypto spot markets in 2020 and am now in the process of journaling all those trades.


    I want to know if via excel I can create something that instantly converts all the amounts of BNB trading fees in column G to USD using exchange rates from historical price data from 2020.



    I tried googling for a free BNBUSD converter type tool that lets me input the amount of BNB I want converted and to what currency, date+time in the past to lookup the exchange rate then and tell me how much that BNB was worth at that moment. Unfortunately, couldn’t find anything.



    I do not want to resort to manually scrolling through 1000s of rows of timestamps in a downloaded excel sheet to individually convert the fees of each 100+ trades.



    From what people have told me I need a table with all the historical data. I did find a 400+mb excel file with 1m OHLC data going back to 2017 (more rows than the max excel will allow). Will this work for what I want to do? How do I use it? What's the next step?



    Do I still need to mess around with APIs or do I have everything I need with this big excel file?



    Is this whole process actually really quick,easy and straight forward for an excel pro?



    I have no clue what I'm doing and have been at this for hours.



    See attached



    Thanks
    Attached Images Attached Images

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,760

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Welcome to the Forum b-Water!

    You can do it with the files you have, if the row limit does not cut off before the dates you need. I would be delighted to test this on your files if you attach them but in the meantime try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I am using the closing price here.

    If it does not find an exact match for the date/time it uses the latest quote before that date/time.

    If this does not work for you please attach sample files. You will probably have to zip them, maybe separately. If the zip file is still >9.77MB (if your file is 400MB then it probably will be) then we'll have to figure something else out. See yellow banner at the top of the page.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Thanks Jazzer,

    I tried the formula you gave but it comes up with #N/A.

    Unfortunately, the row limit stretches between 2017-2019 and all my trades were done in 2020.

    If the 2020 data I need is still in the file is there still some way to work around the row limit problem?

    Forum won't let me post a link to the file in dropbox for you to download so I put it in a txt file attached.

    Spot History .csv also attached.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,387

    Re: Quickly convert column of currency amounts to other currency via historical data?

    You can upload the Excel file here. No need for a link.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,760

    Re: Quickly convert column of currency amounts to other currency via historical data?

    The file is 434MB. It's over 100MB even when zipped. I was able to download it using the link in the .txt file.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,760

    Re: Quickly convert column of currency amounts to other currency via historical data?

    I edited down your large file to start with your earliest needed dates and it's still too big to fit in an Excel file.

    I didn't notice before but now I see that column A of your data file is in UTC format d/m/yyyy. This is very messy (at least for me) because if Excel can convert it to a date it will, so some of your data is dates and some is text. And the conversion to a U.S. date may not be correct.

    This shows what I'm seeing:

    dates.jpg

    I think this will not be as simple as I first expected. I'm giving a heads up to Alan, who is our resident Power Query expert.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: Quickly convert column of currency amounts to other currency via historical data?

    I think you can do this with Power Query. In the Spot file, Convert the UTC Date Time to US with the Date separated from the Time. ie. Split the columns. Here is the Mcode to do that.

    Please Login or Register  to view this content.
    In the BNBUSD file, split the time from the Date and then delete all columns except closing price column and time and date. I assumed you wanted the closing price for that time and date. If not, change the columns to delete so match your needs.

    Please Login or Register  to view this content.
    Close and Load each query.

    In a new file, load each of the queries into the PQ editor and do a full outer join of the two queries (in PQ speak, this is a merge). Highlight the dates and times in each query as the common field to join on. The end result should give you the exchange rate for that time and date. This last merge, I did not test as you did not provide exchange rates for 2020 in the file I was able to download.

    I hope this is what you are looking for.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  8. #8
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Thanks Alan,

    I tried the Mcodes you gave but each one returned an “expression error”. See attached screenshot.

    Regarding the missing 2020 exchange rates from the BNB file, is there a magic trick in excel that can remove all the dates/time rows I don’t need and only show the 2020 data from April-October? Because the data is there in the file, just not able to been seen due to row limits.
    Attached Images Attached Images

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    As to the error message when Alan's code is applied to the SPOT file, I imagine that the issue is the range A1:G307 on the SPOT sheet was not converted into an Excel table.
    In the attached file the data has been converted into an Excel table and Alan's code (top of post) was applied to produce the table on the Table 1 sheet.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: Quickly convert column of currency amounts to other currency via historical data?

    @JeteMc
    Thanks for updating the OP on this issue.
    Alan

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    @Alan, You're Welcome.
    I hope that you have a blessed day.

  12. #12
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Thanks for your help Jete

  13. #13
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Thanks to Jete, the date and time are now split into different columns on the spot file but now before I progress with the rest of your instructions I need to make the 2020 date/time/close price rows visible on the big BNBUSD data sheet.

    I need to know how to do this and didn’t get an answer before so I looked up "What to do if a data set is too large for the Excel grid" on Microsoft Support's site.

    It suggested I try putting it in a pivot table. Everything was going ok until I got to the last step which hit me with the error shown in the screenshot attached.
    Attached Images Attached Images

  14. #14
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,704

    Re: Quickly convert column of currency amounts to other currency via historical data?

    The file that you presented to us does not have any 2020 data in it. I brought the file into Power Query and Power Pivot. Both files show only 2017 data. There is no limit on the number of rows in either of those programs and they both only show 1,048,575 rows of information. Can you provide another link to the file where it shows the 2020 data. You need to load it to PQ from a blank worksheet.

    Data-->Get and Transform Data-->From Text/CSV

    This should load the file into Power Query. You can then split the DateTime and filter out the non necessary columns and rows.

  15. #15
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    The 2020 data actually is there. By some miracle, I found it.

    I can’t remember how I did it but playing around in PQ and deleting millions of rows got me all the minute-by-minute exchange rates for 2020 I’m looking for.

    I think before deleting rows, the row count that came up was over 3,000,000 for me so I’m not sure why you only got 1,048,575.

    I'm stuck now with the same problem as before trying to use your Mcode. I get the exact same expression error that Jete was able to fix for me.

    A link to download the now 6.7mb bnbusd data file is attached if you want to look at it. With any luck, maybe Jete will come back and perform his fix again for it like the spot file.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by b-Water; 02-20-2025 at 10:14 AM.

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    It appears that the screenshot is of an Excel table that includes the minute-by-minute exchange rates for 2020.
    Please attach a copy of the workbook from which that screenshot is taken to your next post.

  17. #17
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    The workbook is 6.7mb large (too big to attach)

    Along with the screenshot I attached a .txt file with a dropbox link to download it. I can't post links directly in here either.

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    To clarify, if only the minute-by-minute exchange rates for 2020 are put into a file that file would be 6.7 mb. Is that correct?
    I went to the link in the .txt file but instead of seeing a file, I only saw a page that wanted me to sign up for drop-box.

  19. #19
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    That shouldn't happen. Not sure why you get a page telling you to sign up.

    I've uploaded to another site and put the link in another .txt attached here. Try this one.
    Attached Files Attached Files

  20. #20
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Here is the page that link takes me to: https://limewire.com/
    If you could attach just the 21 rows of the sheet that are shown in the screenshot in post #15 then we could get the PQ code working.
    Then, assuming the actual table has the same name and column headings, the code should be able to be applied.

  21. #21
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Something is definitely wrong on your end if you see that because I just tried the limewire link again and got the screenshot attached (what you should get)

    The dropbox link also worked for earlier for a member that successfully downloaded and looked at the bnb file.

    If you don't want to click these links because you're afraid they might lead to viruses (they don't) just tell me, I won't get offended.

    I managed to compress it to a .zip file under 9.7mb which should work for an attachment here but for some reason the forum just says "upload failed" without giving a reason. Extremely annoying.

    Also tried converting it to a .xlsb file which again is under 9.7mb and I got the same error as the .zip.

    But as you requested, I've attached the 2020 file with only 21 rows.
    Attached Images Attached Images
    Attached Files Attached Files

  22. #22
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    I imagine that you get that screen because you already have a LimeWire account.
    I imagine that the reason other members were able to open the Dropbox was that they have an account.
    Alan's code assumed a table named Table 1 whereas the actual table name is BNBUSD_1m_Binance___Copy. Also it appears that instead of using the Open time column the Close time is being used.
    Modified code:
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Attached Files Attached Files

  23. #23
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Things still aren’t working for me and I’m about to lose my **** over it.

    I tried your edited code on the full 2020 data file and I still get an expression error saying it can’t find the table name etc etc.

    I actually don’t have a Limewire account and didn’t need one to upload the file for others to download.

    I’ve tried one more file upload site that I’m just praying to god works for you to download and do what you did to the 21 row file to the full 2020 file because I am just hopeless at all this power query/table bs.

    See attached .txt
    Attached Files Attached Files

  24. #24
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    I managed to navigate the LimeWire site and open the file.
    The code used in post #22 worked on the 347K+ row file.
    Perhaps on your computer the file is named "BNBUSD_1m_Binance" rather than "BNBUSD_1m_Binance___Copy", other than that I don't know why the code would not have worked.
    I have uploaded the new file.
    Here is a link to LimeWire: https://limewire.com/d/d9330acc-f5f3...YXFddlUMvT0zTI
    Let us know if you have any questions.

  25. #25
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Thanks Jete, I feel 1 step closer to the end now.

    I’m trying to merge the queries now but when I load the one you just finished preparing the preview shows the time in each row of the Close time.2 column like: “31/12/1899 11:22:59 PM”

    Why doesn’t it just show 11:22:59 PM without the date?

    Look to be completely honest, if you have the expertise and skill to just finish the merge for me very quickly so I get all the bnbusd conversion I want then it will save everybody on the forum a lot of back and forth and mainly me a massive headache. I know you gurus ultimately want to educate lost sheep like me with the whole “give a man a fish, feed him for a day but teach him you feed him for life” kind of approach but I still have a lot to get through regarding the complete journaling of my binance trades and have already burned away so much time just on this step alone.

    I am already extremely grateful for yours, Alans and Jazzer’s contributions and time helping me and I wish I could do these power query steps as quickly and with as much ease as you folk but I am really at the end of my patience with excel right now so just want this whole thing to be over so all of us can move on with our lives.
    Attached Images Attached Images

  26. #26
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    I could not get the merge working, however here is a formula based proposal that may do what you want.
    The formula in column H of the Table 1 sheet is: =INDEX(SPOT_1[Fee],AGGREGATE(15,6,(ROW(SPOT_1[Fee])-ROW(SPOT_1[#Headers]))/(SPOT_1[M/D/Y]=[@[Close Day]])/(SPOT_1[Time]=[@[Close Time]]),1))
    https://limewire.com/d/8db2c9b0-732b...pyYudt0NK8syk0
    Let us know if you have any questions.

  27. #27
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    I’m assuming that every cell in column H shows as #NUM! for you as well.

    Maybe your formula is just 1 tweak away from changing every #NUM! to an accurate BNBUSD conversion.

    In any luck, another guru here might come across this thread and see it then maybe know and make the required adjustments. If not, I’ll have to show it to someone else since I have no clue myself how to make it work.

    You and everyone here has done their best to help me through much selfless efforts. Thank you again.

  28. #28
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    The #NUM! errors occur at date and time slots where there are no matching date and times.
    For example, the first date and time on Sheet 1 is 4/11/2020 at 6:56:00 AM.
    On the Table 1 sheet that date and time is in row 455.
    What should go in the preceding 454 rows?

  29. #29
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Ok that makes sense. Thanks for clarifying.

  30. #30
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    In Sheet1 there are 3 rows of trades for 28/04/2020 2:58:00 PM. Two of them had fees paid in BNB and only 1 in BCH. In the Table1 sheet (blue table) at the 28/04/2020 2:58:00 PM row it only shows the BCH fee paid and not the 2 BNB fee trades. Would be ideal if the BCH amount wasn’t included and only both BNB fees were added together with the total shown in cell H25267 (Table1)

    Also, Sheet1 shows 10 rows of trades for 25/10/2020 10:23:00 PM but only the first row’s BNB fee is shown in the Table1 sheet (blue table). Is there a way to auto sum all the BNB fees incurred at this time and show the total in cell H284702 (Table1)?
    Attached Images Attached Images

  31. #31
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Add a column called Fee2 to the table on Sheet1 and populate it using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Change the formula for column H on the Table1 sheet to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  32. #32
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    I now have all BNB fees converted.

    I have arranged the sheet with all rows grouped into their respective trades.

    Can I quickly calculate the P/L on all trades instantly via formula?

    If all trades had only 2 rows each (1 buy and 1 sell) then I could do it myself but I get confused on how to make it work when there are trades with e.g. 4 rows (1 buy and 3 sells).

    Every trade is a long position so PL calculation would = subtract position value of buy (F3) then subtract total fees (G3:G4) then add position value of sell (F4).

    https://limewire.com/d/4f424920-5e4c...YfsM7_FF32hIWs
    Attached Images Attached Images
    Last edited by b-Water; 02-26-2025 at 06:24 AM.

  33. #33
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    As there are no manually calculated results to use as a guide, this is a guess.
    Populate cells H3 and down using: =IF(C3="SELL",D3-INDEX(D2:D$3,AGGREGATE(14,6,(ROW(D2:D$3)-ROW(D$2))/(C2:C$3="BUY"),1)),"")
    Let us know if you have any questions.
    Attached Files Attached Files

  34. #34
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Thanks for the formula unfortunately it doesn’t appear to work.

    The BCH trade (rows 9-12) with your formula incorrectly calculates the profit to be 5.87 when it is actually 1.753975595.

    The correct answer I manually calculated for you to use as a guide doesn’t display correctly because cells F9:F12 have the text “USDT” at the end of each number. I know there is a way for excel to still calculate it without manually removing the “USDT” but I don’t know how to do it.

    Also, the HBAR trade (rows 30-32) shows 2 incorrect P/L calculations when only 1 correct calculation is needed. There are other trades below with the same problem.

    I have reuploaded the file with a manually calculated formula for the BCH trade mentioned above. Hope that helps.

    https://limewire.com/d/6e4c6187-d2be..._qfClBqQ20GMyk
    Attached Images Attached Images

  35. #35
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    The easy way to remove the "USDT" text is to produce another column (H) populated using: =IF(F3="","",--LEFT(F3,LEN(F3)-4))
    I put the following into cell I12: =-SUM(G9:G12)-SUM(H9:H11)+H12
    You didn't tell us whether the cell that should be populated was in row 31 or 32. I guessed 31.
    Once it is determined what the correct cell is then we can attempt to write a formula to fill cells I3:I390 with a single formula.
    As the file is now small please attach it directly to your posts instead of linking Limewire.
    Let us know if you have any questions.
    Attached Files Attached Files

  36. #36
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    The populated cell should be in row 32 (last row of each trade).

    That HBAR trade P/L calculated in I31 is missing the addition of H32. When included the correct P/L is -0.10510286.
    Attached Images Attached Images
    Attached Files Attached Files

  37. #37
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Here is a formula that seems to work for P/L:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  38. #38
    Registered User
    Join Date
    02-18-2025
    Location
    Australia
    MS-Off Ver
    MS Office LTSC Pro Plus 2021
    Posts
    19

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Excellent work Jete. Well done!

    I’ve added a column next to Fee (USD). I was hoping you could conjure up a magic formula that calculates the total fees for each trade.

    Calculation for trade 1 is: =SUM(H3:H4)
    Calculation for trade 3 is =SUM(H9:H12)

    Please show each total in the newly created column I and aligned in the same row as the P/L value.
    Attached Files Attached Files

  39. #39
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,869

    Re: Quickly convert column of currency amounts to other currency via historical data?

    Paste the following formula into cell I3 and then double click on the fill handle to copy down to cell I390:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to convert the currency and then sum up into single currency
    By cresender in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-03-2021, 10:48 AM
  2. Convert column data to currency using VBA
    By HKPHOOY in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2019, 06:44 AM
  3. [SOLVED] need vba on K & L column convert currency to round after dot
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2015, 01:12 AM
  4. [SOLVED] Calculating amounts in a single currency from a list of multiple currency amounts
    By Romsky in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-03-2013, 12:22 PM
  5. Expense report with historical currency conversion
    By ttkoshi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-02-2013, 08:44 PM
  6. [SOLVED] Bloomberg add-in: comparing historical currency spots
    By rwhaid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2012, 03:06 PM
  7. Currency Amounts
    By Johnners in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2005, 12:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1