Help with Exponential Forumla

olismith89

New Member
Joined
Dec 4, 2014
Messages
12
Hi there,

I am trying to create an exponential formula but I can't wrap my head around it.

Essentially, I want to be able to enter X (see below) into cell A1 and have the result appear in A2.

Nerdy background for my problem - it's for a D&D game where characters will spend X amount of time within a separate dimension. With each hour they spend, the time in their home dimension advances exponentially.
1 hour inside = 1 hour outside
+1
2 hours inside = 2 hours outside
+2
3 hours inside = 4 hours outside
+3
4 hours inside = 7 hours outside
+4
5 hours inside = 11 hours outside
Etc.

Each hour, the time on the outside increases exponentially starting at +1, then +2, +3, +4 etc. So if they spent 8 hours inside, it would be 1+2+4+7+11+16+22+29 = 92 hours.

I want to be able to enter X as the amount of time they spent inside this dimension and have the formula work out the exponential and total it to show how much time has passed in their home dimension.

I'm ok at maths but not very good with exponentials so I can't even work out a real-world formula for my problem. Any maths wizards who know a thing or two about excel, please help!

Hopefully the example makes sense.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Map1
ABCD
1insideoutside
2outside892
31
42
54
67
711
816
922
1029
11
Blad3
Cell Formulas
RangeFormula
D2D2=SUM(OFFSET(Tabel1[[#Headers],[outside]],1,,C2,))
 
Upvote 0
Another option based solely on polynomial equation.

The equation is 1/2 x^2 - 1/2 x + 1. How I found this is in my next reply below.

Book1
AB
111
222
334
447
5511
6616
7722
Sheet1
Cell Formulas
RangeFormula
B1:B7B1=0.5*A1^2-0.5*A1+1
 
Upvote 0
Map1
ABCD
1insideoutside
2outside892
31
42
54
67
711
816
922
1029
11
Blad3
Cell Formulas
RangeFormula
D2D2=SUM(OFFSET(Tabel1[[#Headers],[outside]],1,,C2,))
This doesn't seem to work for me. It may be because my data isn't in a specific table (& when I try to put it one the table isn't formatting how I want it to). Any way the formula provided can be altered to use a cell range, or does the reference have to be a table?
 
Upvote 0
Another option based solely on polynomial equation.

The equation is 1/2 x^2 - 1/2 x + 1. How I found this is in my next reply below.

Book1
AB
111
222
334
447
5511
6616
7722
Sheet1
Cell Formulas
RangeFormula
B1:B7B1=0.5*A1^2-0.5*A1+1

Many thanks for the formula, that's half the problem sorted!
 
Upvote 0
Excel Formula:
D2 = SUM(OFFSET($a$3,,,C2,))
 
Upvote 0
I found this trick a few months back because I was interested to see if I could find the equation for the sum of squares. Merely curiosity. This goes: 1 + 4 + 9 + 16 + ... So the list of values is 0, 1, 5, 13 for 0, 1, 2, 3.

What I found is that to know the order of the equation (x, x^2, x^3, etc.), you can find the differences between the sum values, and those values, etc, until a single number shows up. So for the sum of squares, the first list of differences is 1(difference between 0 and 1 or the difference between 0^2 and 0^2 + 1^2), 4 (1 to 5), 9 (5 to 13). Since these numbers aren't the same (1,4,9, etc), the next difference would be 3,5,7 (1 to 4, 4 to 9, 9 to 16). Since these aren't the same, the next difference is 2,2,2. Because they are the same, the formula would be based on x^3.

I did the same for your numbers.
Book1
ABCD
1InputOutputFirst differenceSecond difference
2110
32211
43421
54731
651141
761651
872261
982971
1093781
Sheet1

Since the second difference is all the same, it is a quadratic equation. Then, it's a matter of solving for 3 unknowns (ax^2+bx+c):
a1^2+b+c=1
a2^2+2b+c=2
a3^2+3b+c=4.
Put these into an online calculator (or by hand) and you get 0.5x^2-0.5x+1.
 
Upvote 0
and the formula for the sum ...
 

Attachments

  • Schermafbeelding 2022-02-01 190801.png
    Schermafbeelding 2022-02-01 190801.png
    2.8 KB · Views: 10
Upvote 0
Ok. I'm not so smart today. I gave the line by line equation and not the sum. Here's the update.

The sum equation is 1/6 x^3 + 5/6 x.
Book1
ABCDEFG
1InputOutputSumFirst differenceSecond differenceThird differenceSum based on equation
211111
32232113
43474217
5471473114
651125114125
761641165141
Sheet1
Cell Formulas
RangeFormula
C2:D2C2=B2
G2:G7G2=(1/6)*A2^3 +(5/6)*A2
B3:B7B3=B2+A2
C3:C7C3=B3+C2
D3:F7D3=C3-C2
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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