+ Reply to Thread
Results 1 to 5 of 5

Need a tricky exponential formula.

  1. #1
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Need a tricky exponential formula.

    I want to do the following.

    I want to add X + X (the same again) + a Growing multiply-able % of the same X.
    Then the Result of this + X (the same) + double the % of X.

    So if i got 100 as X
    The a cell adds 100+100 + say 5% of 100 = 200 + 5 = 205
    However for the next cell i want this to add the result + 10% instead of 5% of the 100.

    So far I can do it by saying =CELL + (SAMECELL*1.05)
    But that way i have to tweak the current modifier (1.05 [5%]) for every cell.

    I bet there is a fancier way of doing that...

    Anyone?

    P.S.

    Solutions:
    1. See Ben's example in post 2.

    2.

    Here's the entire thing so anyone can recreate it:

    C18 is 100 (Base number)
    B18 is 20 (the %)
    D18 is =C18*B18% (that shows you how much 20% is off 100)

    C1 =C18
    C2 =(C1+C$18)+ROWS(C$2:C2)*D$18
    C3 =(C2+C$18)+ROWS(C$2:C3)*D$18
    C4 =(C3+C$18)+ROWS(C$2:C4)*D$18
    C5 =(C4+C$18)+ROWS(C$2:C5)*D$18
    C6 =(C5+C$18)+ROWS(C$2:C6)*D$18

    However if you don't want a cell to view the result you get off your Base and % you can skip it by replacing the last bit *D$18 with *(C18*B18%) and that is that.

    Rows counts the number of cells in a specified range, in this case from A4 to A21. Depending on which of the two cells on the end of the range you lock, the formula auto adjusts to count 1 more or less cell in each following cell you paste it. Allowing you to work with both exponential increase or decrease.

    And as Ben was said you add a $ when you want the cell numbers to stay fixed from auto adjustment when you paste formulas elsewhere.
    Last edited by Polymorpher; 01-23-2014 at 04:22 AM. Reason: Update

  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: Need a tricky exponential formula.

    A1 = input value (eg, 100)
    B1 = percentage change (eg, 5%)
    C1 = (2* A$1) + (A$1 * B1)

    Then as you drop down C1 will always refer to row 1 in column A (that's what that dollar sign does), but it will refer to the row next to it in column B. So you can fill B1 = 5%, B2 = 10%, B3 = 15%, etc.

    Alternately, you could refer to
    ROW() * 5%
    or something like that instead of referencing a multiplier contained in column B, but I feel that solution is too clever.

  3. #3
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: Need a tricky exponential formula.

    Now all i need is the syntax to actually add % since when I do =100+5% i get "10005.00%" instead of 105. And if i do 100 * 5 % it gives me a 5 as it should.

    ...Solutions updated in main post...
    Last edited by Polymorpher; 01-22-2014 at 09:36 AM.

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

    Re: Need a tricky exponential formula.

    ...Of course if you add 100 + 5% it gives 10,005%?

    5% is the same as 0.05 mathematically. "Percentage" literally from "per centi" meaning "out of a hundred", pseudolatinate.

    100 = 100 * 1 = 100 * 100% = 10,000%

    Also I have no idea:

    1) What you're trying to accomplish with ROWS there.

    2) Where the exponential bit is supposed to be.

    I mean, leaving aside excel for a minute,

    You're basically setting up this kind of function:

    f(x,n) = 2x + n * x * 0.05

    Maybe you can go through and make it an arrayed output where x = constant and n increments up from 1.

    But it's not exponential at all???

  5. #5
    Forum Contributor
    Join Date
    08-17-2010
    Location
    London
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: Need a tricky exponential formula.

    The added % is exponential.

    Rows provides what you take your modifier from B1 in your example, and does so proportionately.

    In this case if my % is 20 on my base of 100

    I get exactly what i set out to get.

    100
    220 + 20% off 100
    360 +40% off 100
    520 +60% off 100
    700 etc
    900
    1120
    1360
    1620
    1900

    So the percent growth is exponential - unless my math terminology is way out of whack and this example effect should be called something else other than exponential growth.

    Anything else can grow the same way if you tie in the rows right.

    Here's the entire thing so anyone can recreate it:

    C18 is 100 (Base number)
    B18 is 20 (the %)
    D18 is =C18*B18% (thats shows you the result off 100*20%)

    C1 =C18
    C2 =(C1+C$18)+ROWS(C$2:C2)*D$18
    C3 =(C2+C$18)+ROWS(C$2:C3)*D$18
    C4 =(C3+C$18)+ROWS(C$2:C4)*D$18
    C5 =(C4+C$18)+ROWS(C$2:C5)*D$18
    C6 =(C5+C$18)+ROWS(C$2:C6)*D$18

    Etc. etc.


    ...
    Oddly enough google does 100+20% the other way for less math proficient (;
    Last edited by Polymorpher; 01-23-2014 at 05:23 AM. Reason: Update

+ 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. Capped Exponential Bonus Formula
    By P_Bennett in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-06-2015, 01:06 PM
  2. Inserting an exponential formula
    By SeanBorn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2013, 05:03 PM
  3. Need vba code/formula to find exponential value
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2012, 02:38 PM
  4. Replies: 3
    Last Post: 08-19-2009, 08:16 AM
  5. [SOLVED] Tricky formula
    By Steve in forum Excel General
    Replies: 3
    Last Post: 04-17-2006, 12:10 PM

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