LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Countnumberofdays while function = TRUE

Dear list,

I've got a rather complicated problem:
I need to calculate the number of days an animal stays in an age-group,
based on its growth (depends on the weight of the animal and the day of the
year).

The weight of an animal on day x van be calculated as Wx = W(x-1) +
(0.1*W(x-1)^(2/3)-0.05*W(x-1))*f(Temp) With f(Temp) is a temperature
dependent function (ranges from 0-1).

In column A I calculated f(Temp) for each day (365 rows). In column B I want
the number of days before the animal reaches a certain weight (let's say, 10
grams). The number of days depends on the day of the year the animal enters
the simulation (Temp dependence).
A fictive example below:

A B
f(Temp) # days
0.30 30
0.31 29.3
0.32 29
0.33 ...
0.34
....
0.99
1.00
0.99
0.98
....
0.30

So, B2 (and the other cells in column B) should be something like (e.g.
start weight = 1 gram):
countnumberofdays while Wx=W(x-1)+(0.1*W(x-1)^(2/3)-0.05*W(x-1))*f(Temp) <=
10 grams.
I think it should be something with a Do ... Loop function, but I'm a
complete VBA nitwit.

Does anyone knows if this is possible?

Maarten

 
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
My IF function is saying something is false when it is true... dilbert16588 Excel Worksheet Functions 2 April 11th 08 07:00 AM
IF Function doesn't recognize TRUE AMY Z. Excel Worksheet Functions 6 October 24th 06 11:28 PM
Function to return True/False if all are validated as True by ISNU Tetsuya Oguma Excel Worksheet Functions 2 March 15th 06 10:28 AM
If Function true value in Red donnaK Excel Worksheet Functions 4 December 16th 04 06:55 PM
Why doesn't this function return TRUE? Daniel.M[_2_] Excel Programming 8 July 13th 03 10:06 PM


All times are GMT +1. The time now is 09:09 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"