Excel or math question

emilpull

New Member
Joined
Apr 27, 2018
Messages
3
Total peonsPer Peon income/hPeon loss/hTime calculatedTotalgold
Player1100002.53%n???
Player2110002.53%n???
Player3

<tbody>
</tbody>

So, this is probably more a math problem than an excel problem. But while trying to simulate a game, I've come up with this problem. I want to be able to manipulate a number of constants (listed above) to give me the total gold gained over whatever unit of time.

The answer for player one would be:

10000*2.5 = 25000 for hour 1
10000*0.97*2.5 + 25000 (from hour 1) = 49250 for hour 2
9700*0.97*2.5 + 49250 (from hour 2) = 72772,5 for hour 3
etc...

I can sheet this out for one player using large tables and per time unit calculations, but I'm sure there's a way to do these calcs logarithmically, but can't for the life of me remember enough of my high school math...
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
hope this works


Book1
ABCDEF
1Total peonsPer Peon income/hPeon loss/hTime calculatedTotalgold
2Player1100002.50.03125000
3Player1100002.50.03249250
4Player1100002.50.03372772.5
5Player1100002.50.03495589.3
6Player1100002.50.035117722
7Player2110002.50.03127500
Sheet14
Cell Formulas
RangeFormula
F2=($B2*$C2)*(1+-$D2)^(E2-1)+(($B2*$C2)*(1+-$D2)^(E2-1)-($B2*$C2))/-$D2
 
Upvote 0
Total peonsPer Peon income/hPeon loss/hTime calculatedTotalgold
Player1100002.53%n???
Player2110002.53%n???
Player3

<tbody>
</tbody>

So, this is probably more a math problem than an excel problem. But while trying to simulate a game, I've come up with this problem. I want to be able to manipulate a number of constants (listed above) to give me the total gold gained over whatever unit of time.

The answer for player one would be:

10000*2.5 = 25000 for hour 1
10000*0.97*2.5 + 25000 (from hour 1) = 49250 for hour 2
9700*0.97*2.5 + 49250 (from hour 2) = 72772,5 for hour 3
etc...

I can sheet this out for one player using large tables and per time unit calculations, but I'm sure there's a way to do these calcs logarithmically, but can't for the life of me remember enough of my high school math...

It is somewhat simple. First you must calculate the exponential decay equation that gives the amount of gold generated per hour (e. G 25,000 first, 24,250 second...) then you can simply integrate and that should give you the total amount over the desired period of time.
If nobody else does that for you in the next few hours I can when I get the chance to.
 
Upvote 0

Forum statistics

Threads
1,215,568
Messages
6,125,599
Members
449,238
Latest member
wcbyers

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