How to formulate an exponential function so that the SUM is always 100%

I want to create a table that always shows a total result of 100%.

I added monthly records.

Currently I believe that each month's value should be calculated based on a logarithmic function with a "logarithmic value" for the cell values to grow exponentially over time and reach the desired goal of 100% or in my case 200,000.


If I wish to update the logarithmic value I can quickly see how fast or slow the growth would be.


My question:

How to set up this function for each cell so that when I change the logarithmic value (growth value), the SUM is always the intended goal and therefore always equal to 100%?


In the image I'm just visually showing what I'd like to accomplish but I don't know how to calculate each cell in Row B so that the calculated result is equal to 100% or in my case 200,000. Each cell in column B is just a fixed number here, not a function yet.


I want to use this to calculate what my sales targets should be each month to reach my predicted or desired goal.


Thanks in advance, fellow teachers!




Posted on Jan 9, 2021 3:45 PM

Reply
4 replies

Jan 10, 2021 2:04 AM in response to BassPlaya

Clarification, please:


Your statement says you want an "exponential function so that the SUM is always 100%"


But on your sample table, you show a SUM of seven times than much, and a one month 'goal?' of 200,000 arriving in September.


Is your 200,000 goal the goal for a one month total for the last month of the year, or is it the goal for your total sales from January 1 to December 31 of that year?


Here's an example showing the results for an initial sales figure of 1000 (as in your example) and a goal of 200,000 over the year, with a constant 45.9% increase in monthly sales each month.


The charts show the monthly sales (blue) and the running total sales (green) needed to reach the 100% goal.


The formula shown below the table is entered in B3 and filled down to December.


Row 14 is a Footer row.


Formulas:

B14: SUM(B)

C14: SUM(C)


C1 contains the multiplier used to calculate the 'current month's goal from the previous month's goal. 1.459, equivalent to 145.9%, was reached by 'guess and check' calculations of the whole column.


The rest of column C calculates the percentage of the goal represented by each month's expected sales.

C2: B2/200000

Fill down to December


Column D calculates the cumulative percentage of the goal expected to be reached by the end of each month.


D2: SUM(C$2:C2)

Fill down to December.


Columns C and D are the data sources for the Line Chart shown beside the tables.



Regards,

Barry

Jan 10, 2021 4:14 PM in response to BassPlaya

"And D2: SUM(C$2:C2) is a strange but effective formula. It took me a while to get my head around it. Thanks!"


Not all that strange.


SUM(this cell:that cell) sums all values in the range of cells starting at 'this cell' and ending at 'that cell'


The $ operator locks 'this cell' to always reference C2 as the formula is copied into cells below that in column C.

Without the operator, the reference to 'that cell' increments to reference the cell in column C that is on the row containing each copy of the formula as it is filled down the column.


Is there a way for the table to calculate itself "from the end in mind" perspective i.e. the 200,000 and then calculate backwards?


Not in Numbers. This type of process requires reiterative calculation in which previous results are used to adjust the starting data—as was done manually in my calculations—comparing the result in B14 to the target value, then adjust the starting value in C1 in the direction to achieve a higher or lower result. A closer result could be achieved, but would require more digits after the decimal in C1


Reiterive calculations require feference to at least one cell whose value depends on the value in the cell whose formula is asking for that value, a self-reference that Numbers does not permit.


LibreOffice's CalC mode does include a "Solver" which does perform this type of operation.


Regards,

Barry

Jan 10, 2021 3:29 PM in response to Barry

Thank you, Barry! Much appreciated. I learnt something new again.

It works and I understand that it's trial and error to get that growth percentage just right to the point where I'll reach 200,000.

That's okay for me now. But that then begs the question:

Is there a way for the table to calculate itself "from the end in mind" perspective i.e. the 200,000 and then calculate backwards?


Also, the reason why my sum showed seven times as much was because I just provided this to show that I didn't know how to make sure that cell B14 = B15.


And D2: SUM(C$2:C2) is a strange but effective formula. It took me a while to get my head around it. Thanks!


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to formulate an exponential function so that the SUM is always 100%

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.