Calculate Biggest Profit & Loss Day

vegaaltair

New Member
Joined
Sep 12, 2014
Messages
8
So I have a range of bets that I would like to summarize by having a cell display the most amount of money won and another showing money loss on a single day and for it to constantly calculate the biggest amount. What would be the best approach for this?

The data is formatted like below.

DateSelectionBet TypeStakeOddsWinAt RiskPayoutProfit / Loss
14-Jan-15One With BlingWinner206Y20120100
14-Jan-15One With BlingPlace1602.25Y160360200
15-Jan-15Dance Mindy Dance Winner772.3N770-77
15-Jan-15ZilchPlace594.4Y0200.6200.6

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody></tbody>
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Yeh I need to somehow figure out the max profit from winning bets but have the formula stop adding when the date changes which is my problem everything seems to get more difficult when you use dates.
 
Upvote 0
18-203321
01/01/2014171315-304422
01/01/201411312-10-405523
01/01/2014112
02/01/201428
02/01/2014215
02/01/20142-10
03/01/20143-20
03/01/20143-30
03/01/20143-40
04/01/2014433
04/01/2014444
04/01/2014455
05/01/2014521
05/01/2014522
05/01/2014523
12345
01/01/201402/01/201403/01/201404/01/201405/01/2014
max1315-205523
min1-10-403321
this macro groups your results into days
and for each day lists all the amounts
the lower table merely lists the min and max amount for each day
Dim n(6, 15)
n(1, 1) = Cells(2, 2)
Sum = 2
x = 1
Count = 1
25 Sum = Sum + 1: If Sum > 16 Then GoTo 100
If Cells(Sum, 2) = Cells(Sum - 1, 2) Then Count = Count + 1: n(x, Count) = Cells(Sum, 3): GoTo 25
x = x + 1: Count = 1: n(x, Count) = Cells(Sum, 3): GoTo 25
100 colnum = 5
For k = 1 To x
For p = 1 To 15
Cells(p, colnum) = n(k, p)
Next p
colnum = colnum + 1
Next k
150 End Sub

<colgroup><col><col span="3"><col><col><col><col><col><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,005
Messages
6,122,661
Members
449,091
Latest member
peppernaut

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