+ Reply to Thread
Results 1 to 3 of 3

Profit / Loss calculation spreadsheet

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Profit / Loss calculation spreadsheet

    Hi all, I need some help with one formula (cell S19) - which I have manually typed £54.46 into, but I need to know how to manually calculate this figure.

    The figure drives the yellow cells in G27:G39 to be as equal as possible, and also the cells AB3:AB4 to be as close as possible to the positive and negative of each other.

    The spreadhseet is used for cross market betting, and at the moment I am manually typing this figure into S18 based on guesswork and adding / decreasing it to suit.

    I'm hoping there is a math whizz here who can help.
    Attached Files Attached Files

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Profit / Loss calculation spreadsheet

    The hardest part was understanding what's going on in your spreadsheet. Doing it "manually" would be a bit of a monster because you're asking for iteration; well, computers are good at that, though.

    Anyway, the way I recommend doing this is getting the MSE of range G27:G39. That's in cell H41. Then you can use a numerical method (such as Solver) to find the value of S18 that will drive H41 towards zero.

    I've bound a macro to run that Solver onto a button labeled "solve S18" on the sheet. Make sure you've got solver enabled in both excel and in VBA to run it.

    Anyway, see attached.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Profit / Loss calculation spreadsheet

    Hi ben_hensel - thank you so much. Apologies that the spreadsheet was a bit much to get your head around but your solution works great. I never knew it'd be as complex though.

    Thanks again

+ 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. 1. consecutive days of profit and of losses 2. biggest profit loss since date
    By xbohemianx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2013, 12:57 PM
  2. [SOLVED] Urgent!! Profit loss spreadsheet help
    By IAmTheSuit in forum Excel General
    Replies: 6
    Last Post: 05-06-2013, 05:58 AM
  3. Replies: 1
    Last Post: 10-09-2012, 08:40 AM
  4. Profit and Loss
    By marcolanni in forum Excel General
    Replies: 5
    Last Post: 07-05-2010, 08:39 AM
  5. Profit & loss
    By casio in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2009, 08:45 AM

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