summarize results over a large list of sets of assumptions

nidzela

New Member
Joined
Dec 18, 2014
Messages
4
hello everybody,

(my first post, have mercy!)

i've asked my students to create a simple pattern in excel: given a starting ammount of money (c), a rate of interest (i) and a certain number of years (n), they have to find the final ammount after compounding them year per year (it's a basic relative and absolute formula practice).

for example, let's take c=250 $, i=2% and n=3 years. they should reach this:

0250 (=$c)5 (=$c*$i)
1255 (=B1+C1)5.10 (=B2*$i)
2260.10 (=B2+C2)5.20 (=B3*$i)
3265.30 (=B3+C3)

<tbody>
</tbody>

the point is that i've prepared also a table with DIFFERENT STARTING VALUES for each student, so everyone has to reach his different solution in a different row:

cin
Student 115002.7%5
Student 23501.9%2
Student 368003.1%7
...

<tbody>
</tbody>

is there a way to build ALL SOLUTIONS in a new column, beside these starting values?
well... of course there are ways to get that, i'm thinking of VB, but i'd like to avoid it. i also know well how to use OFFSET or INDEX to find the right cell for each case, but the problem is how to introduce each set of assumptions quickly, and how to write down the solution automatically. i also took a look on scenarios, but they seem awful to create (29 students, and 2 more exercises to summarize the same way...).

i'm using latest Excel version (Pro 2013).
thanks in advance for having a look!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Welcome to Mr Excel

Maybe something like this...


A
B
C
D
E
1
c​
i​
n​
Result​
2
Student 1​
1500​
2,70%​
5​
1713,73​
3
Student 2​
350​
1,90%​
2​
363,43​
4
Student 3​
6800​
3,10%​
7​
8420,14​
5
Student 4​
250​
2,00%​
3​
265,30​

Formula in D2 copied down
=B2*(1+C2)^D2

Hope this helps

M.
 
Upvote 0
Formula in D2 copied down
=B2*(1+C2)^D2

M.


thanks, Marcelo!

your formula is correct, and this means that i explained the situation quite properly (fine, i was worried about being able to communicate it).
but it is not what i am searching for, because your single-calculation "jumps" directly to the final result, and this may not be the same as an iterative quest involving a large sequence of intermediate calculations. in other words:

B2*(1+C2)^D2 and OFFSET($B$1;n;0) may be different when n is large enough, because of increasing error at each step (assume offset applied to sheet where the exercise table is located).

i really need to seek for all those possibly-wrong-values, because my students will find them at the bottom of their exercises instead of the correct theorical ones! and here arises the complexity of my quest: you have to get the values at the bottom of variable tables... not only in lenght (easily solved with offset, for example) but also in starting values of c and i. that's what pushed me into the scenario idea, but it looks wrong to apply.
 
Upvote 0
Sorry, i'm not understanding what you need - how and where to put the results (steps) for each student .

Hope someone else can help you.

M.
 
Upvote 0
See if this helps


A
B
C
D
E
F
G
H
I
J
K
L
1
c​
i​
n​
0​
1​
2​
3​
4​
5​
6​
7​
2
Student 1​
1500​
2,70%​
5​
1500​
1540,5​
1582,09​
1624,81​
1668,68​
1713,73​
3
Student 2​
350​
1,90%​
2​
350​
356,65​
363,43​
4
Student 3​
6800​
3,10%​
7​
6800​
7010,8​
7228,13​
7452,2​
7683,22​
7921,4​
8166,96​
8420,14​
5
Student 4​
250​
2,00%​
3​
250​
255​
260,1​
265,3​

<tbody>
</tbody>


Formula in E2 copied down
=C2

Formula in F2 copied across and down
=IF($D2>=F$1,ROUND(E2*(1+$C2),2),"")

M.
 
Upvote 0
Sorry, i'm not understanding what you need - how and where to put the results (steps) for each student .

Hope someone else can help you.

M.

ouch, possibly my question sounds a bit confusing... i apologise. let me try to make it clearer: i didn't explain that i have 2 sheets in mind. let's say Sheet1 contains a table like (borrowing Marcelo's pattern):

A
B
C
D
E
1
c250 (=$c)5 (=B1*$i)
2i255 (=B1+C1)5.10 (=B2*$i)
3n260.10 (=B2+C2)5.20 (=B3*$i)
4265.30 (=B3+C3)

<tbody>
</tbody>

in this example, n=3, so the answer to be extracted appears in B4 (one row more than years). this is also what my students are supposed to send via e-mail.

let's say also that student's data is in Sheet2:

A
B
C
D
E
1
c
i
n
Result
2
Student 1
250​
2,50%​
3​
265.30
3
Student 2
350​
1,90%​
2​
363,43
4
Student 3
6800​
3,10%​
7​
8420,14
5
Student 4
250​
2,00%​
3​
265,30

<tbody>
</tbody>

i want to autofill column E somehow, but not using the formula =B2*(1+C2)^D2 (which is completely correct, but theorical... numerical answer by Excel may be different because of increasing error in iterative calculation) neither using VB (that would be something like: spinbutton from 1 to 29 students, read data on Sheet2, replace values on Sheet1, then extract and write down answer from row n+1). i'd like to get that by some combination of array formulas, scenarios, or whatever.

so it would be like performing Sheet1 as an emulator for every student's particular case.
does this make the question clearer?
 
Upvote 0
See if this helps


A
B
C
D
E
F
G
H
I
J
K
L
1
c​
i​
n​
0​
1​
2​
3​
4​
5​
6​
7​
2
Student 1​
1500​
2,70%​
5​
1500​
1540,5​
1582,09​
1624,81​
1668,68​
1713,73​
3
Student 2​
350​
1,90%​
2​
350​
356,65​
363,43​
4
Student 3​
6800​
3,10%​
7​
6800​
7010,8​
7228,13​
7452,2​
7683,22​
7921,4​
8166,96​
8420,14​
5
Student 4​
250​
2,00%​
3​
250​
255​
260,1​
265,3​

<tbody>
</tbody>


Formula in E2 copied down
=C2

Formula in F2 copied across and down
=IF($D2>=F$1,ROUND(E2*(1+$C2),2),"")

M.

thanks for your suggestion, Marcelo!

at last i decided to use VB to create a couple of macros. the aim was not to spend so much colums for calculations, as long as the first sheet already contains the required information. i've used a Spinbutton and some code like:

For k = 3 To 5
Sheets(1).Cells(k, 3) = Cells(Spinbutton1 + 3, k) 'overwrites starting values
Next
Cells(Spinbutton1 + 3, 5) = Sheets(1).Cells(years + 3, 6) 'places found answer in the 5th column

my first approach seems difficult to achieve (maybe impossible in the terms i was asking for), and i've left it for some other day.
 
Upvote 0
You are welcome.

Sorry, for failing to understand exactly what you wanted and could not help more.

Anyway, thanks for the feedback and good luck in your project.

M.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,605
Members
449,089
Latest member
Motoracer88

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