Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 334
Default How many iterations it takes to get to 0?

I have 100 values and I want to find out how many iterations it takes for
each value to get to 0, each value decreases by 20% each month. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How many iterations it takes to get to 0?

If a value starts with a non-zero amount, then it can NEVER reach zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5 Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 334
Default How many iterations it takes to get to 0?

Sorry I forgot to write that if you start out at 100 how many iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER reach zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5 Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How many iterations it takes to get to 0?

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER reach zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5 Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default How many iterations it takes to get to 0?

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER reach zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5 Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How many iterations it takes to get to 0?

Very good. Only a single cell and no need to iterate. Looks like thresholds
for exponential decay.
--
Gary''s Student - gsnu200720
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 334
Default How many iterations it takes to get to 0?

I tried the log function below but it did not work...it gave me -12 something.

"Barb Reinhardt" wrote:

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER reach zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5 Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How many iterations it takes to get to 0?

So what numbers did you plug in to the formula to get -12 something?

If EndVal is half of BeginVal (which is what you asked for), the answer is
3.106284
--
David Biddulph

"Rick" wrote in message
...
I tried the log function below but it did not work...it gave me -12
something.

"Barb Reinhardt" wrote:

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many
iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER reach
zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5
Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 334
Default How many iterations it takes to get to 0?

This is what I typed =LOG(50,100)/LOG(0.8)
and I get -8.76571

"David Biddulph" wrote:

So what numbers did you plug in to the formula to get -12 something?

If EndVal is half of BeginVal (which is what you asked for), the answer is
3.106284
--
David Biddulph

"Rick" wrote in message
...
I tried the log function below but it did not work...it gave me -12
something.

"Barb Reinhardt" wrote:

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many
iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER reach
zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5
Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How many iterations it takes to get to 0?

I suggest you read again the formula given by Barb.

If you get a different answer from what you're expecting, it's always worth
checking whether you've typed the formula wrongly. It's usually safest to
copy and paste rather than to retype, then you can copy that again and
change the relevant parameters.
--
David Biddulph

"Rick" wrote in message
...
This is what I typed =LOG(50,100)/LOG(0.8)
and I get -8.76571


"David Biddulph" wrote:

So what numbers did you plug in to the formula to get -12 something?

If EndVal is half of BeginVal (which is what you asked for), the answer
is
3.106284


"Rick" wrote in message
...
I tried the log function below but it did not work...it gave me -12
something.


"Barb Reinhardt" wrote:

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many
iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER
reach
zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5
Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720








  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 334
Default How many iterations it takes to get to 0?

Its not LOG...its the natural log. =LN(50/100)/LN(0.8) Did you get it using
LOG?

"David Biddulph" wrote:

I suggest you read again the formula given by Barb.

If you get a different answer from what you're expecting, it's always worth
checking whether you've typed the formula wrongly. It's usually safest to
copy and paste rather than to retype, then you can copy that again and
change the relevant parameters.
--
David Biddulph

"Rick" wrote in message
...
This is what I typed =LOG(50,100)/LOG(0.8)
and I get -8.76571


"David Biddulph" wrote:

So what numbers did you plug in to the formula to get -12 something?

If EndVal is half of BeginVal (which is what you asked for), the answer
is
3.106284


"Rick" wrote in message
...
I tried the log function below but it did not work...it gave me -12
something.


"Barb Reinhardt" wrote:

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many
iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER
reach
zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5
Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720






  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How many iterations it takes to get to 0?

OK, Rick, let's take this a step at a time:
What answer do you get from =LN(50/100)/LN(0.8) ?
What answer do you get from =LOG(50/100)/LOG(0.8) ?

You may wish to remind yourself of the conversion between logs to different
bases.
--
David Biddulph

"Rick" wrote in message
...
Its not LOG...its the natural log. =LN(50/100)/LN(0.8) Did you get it
using
LOG?


"David Biddulph" wrote:

I suggest you read again the formula given by Barb.

If you get a different answer from what you're expecting, it's always
worth
checking whether you've typed the formula wrongly. It's usually safest
to
copy and paste rather than to retype, then you can copy that again and
change the relevant parameters.
--
David Biddulph

"Rick" wrote in message
...
This is what I typed =LOG(50,100)/LOG(0.8)
and I get -8.76571


"David Biddulph" wrote:

So what numbers did you plug in to the formula to get -12 something?

If EndVal is half of BeginVal (which is what you asked for), the
answer
is
3.106284


"Rick" wrote in message
...
I tried the log function below but it did not work...it gave me -12
something.


"Barb Reinhardt" wrote:

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many
iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER
reach
zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5
Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720








  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 334
Default How many iterations it takes to get to 0?

I got it now. I am an idiot. I was writing =LOG(50,100) instead of (50/100).
You were right I should have looked how to type it.

Thanks.

"David Biddulph" wrote:

OK, Rick, let's take this a step at a time:
What answer do you get from =LN(50/100)/LN(0.8) ?
What answer do you get from =LOG(50/100)/LOG(0.8) ?

You may wish to remind yourself of the conversion between logs to different
bases.
--
David Biddulph

"Rick" wrote in message
...
Its not LOG...its the natural log. =LN(50/100)/LN(0.8) Did you get it
using
LOG?


"David Biddulph" wrote:

I suggest you read again the formula given by Barb.

If you get a different answer from what you're expecting, it's always
worth
checking whether you've typed the formula wrongly. It's usually safest
to
copy and paste rather than to retype, then you can copy that again and
change the relevant parameters.
--
David Biddulph

"Rick" wrote in message
...
This is what I typed =LOG(50,100)/LOG(0.8)
and I get -8.76571

"David Biddulph" wrote:

So what numbers did you plug in to the formula to get -12 something?

If EndVal is half of BeginVal (which is what you asked for), the
answer
is
3.106284

"Rick" wrote in message
...
I tried the log function below but it did not work...it gave me -12
something.

"Barb Reinhardt" wrote:

Or something like this

# iterations =LOG(EndVal/BeginVal)/LOG(0.8)

"Gary''s Student" wrote:

In A1 put 100 and
In A2 thru A10 enter:

=A1*0.8
=A2*0.8
=A3*0.8
=A4*0.8
=A5*0.8
=A6*0.8
=A7*0.8
=A8*0.8
=A9*0.8
to see:

100
80
64
51.2
40.96
32.768
26.2144
20.97152
16.777216
13.4217728

and as you can see 4 iterations got use below 50.
--
Gary''s Student - gsnu200720


"Rick" wrote:

Sorry I forgot to write that if you start out at 100 how many
iterations does
it take to go below 50...using the residual value

"Gary''s Student" wrote:

If a value starts with a non-zero amount, then it can NEVER
reach
zero if it
decrease by 20% of its residual value.

If you decrease it 20 % of its original value it will take 5
Iterations:

100
80
60
40
20
0

--
Gary''s Student - gsnu200720









Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for iterations.... Nick Krill Excel Discussion (Misc queries) 3 April 19th 07 07:44 PM
Iterations antonje New Users to Excel 2 October 10th 06 08:11 PM
number of iterations as default Gavin Bulman Excel Worksheet Functions 0 October 6th 06 09:10 AM
copying data during iterations aminal Excel Discussion (Misc queries) 6 July 27th 06 01:33 AM
Is there a way where I can default iterations Kelseyk Excel Discussion (Misc queries) 0 March 28th 06 12:49 AM


All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"