Author Topic: need some excel help if u can shed light
mightbe 
Title: lalalalalalalalalalalalalalalalalalalalalalalalala
Posts: 16,082
Registered: Jul 21, '03
Extended Info (if available)
Real Post Cnt: 15,729
User ID: 824,229
Subject: need some excel help if u can shed light
alright

here are my cells

High Temp:
Low Temp:

then i have to other cells

Growing Degree day high
Growing degree day low

now for growing degree day high, if the high temp is above 86, i want the growing degree day to be only 86. example i imput 95 into high temp and the data is then put into growing degree day high of 86 but not 95

now for growing degree day low, if the low temp is below 50, i want the growing degree day to be only 50. example i input 45 into low temp and the data is then put into growing degree day low of 50 instead of 45

and finally temperatures that fall between 50 and 86 are recorded as is.

so example

High Temp:90
Low Temp:45

GDD High:86
GDD Low:50

example 2:

High Temp:75
Low Temp:55

GDD High: 75
GDD Low: 55

 

-----signature-----
peace me for mod! dancing
thinking Misbeller of mightbe thinking
hugs I love me applause love i you love
flag Go..VO..GO... flag
praying I God of miself. praying
Link to this post
Rhodoman 
Posts: 81,876
Registered: Jun 14, '01
Extended Info (if available)
Real Post Cnt: 80,454
User ID: 154,069
Subject: need some excel help if u can shed light
=If(AddressOfCellWithRealTempInput > 86, 86, AddressOfCellWithRealTempInput) or =If(<expression>, <value-if-true>, <value-if-false>)

Repeat and fade.


Rho

 

-----signature-----
Rho is correct. - Varece
Venit hiems quidquid Latine dictum sit altum viditur
Referring to illegal aliens as 'immigrants' is the same as referring to shoplifters as 'shoppers' - Dorvinion
Link to this post
mightbe 
Title: lalalalalalalalalalalalalalalalalalalalalalalalala
Posts: 16,082
Registered: Jul 21, '03
Extended Info (if available)
Real Post Cnt: 15,729
User ID: 824,229
Subject: need some excel help if u can shed light
mightbe posted:
alright

here are my cells

High Temp:
Low Temp:

then i have to other cells

Growing Degree day high
Growing degree day low

now for growing degree day high, if the high temp is above 86, i want the growing degree day to be only 86. example i imput 95 into high temp and the data is then put into growing degree day high of 86 but not 95

now for growing degree day low, if the low temp is below 50, i want the growing degree day to be only 50. example i input 45 into low temp and the data is then put into growing degree day low of 50 instead of 45

also if no input is put in for a high temp or low temp the gdd temp will read 50

and finally temperatures that fall between 50 and 86 are recorded as is.

so example

High Temp: 0
Low Temp:0

GDD High: 50
GDD low: 50

High Temp:90
Low Temp:45

GDD High:86
GDD Low:50

example 2:

High Temp:75
Low Temp:55

GDD High: 75
GDD Low: 55

 

-----signature-----
peace me for mod! dancing
thinking Misbeller of mightbe thinking
hugs I love me applause love i you love
flag Go..VO..GO... flag
praying I God of miself. praying
Link to this post
mightbe 
Title: lalalalalalalalalalalalalalalalalalalalalalalalala
Posts: 16,082
Registered: Jul 21, '03
Extended Info (if available)
Real Post Cnt: 15,729
User ID: 824,229
Subject: need some excel help if u can shed light
Rhodoman posted:
=If(AddressOfCellWithRealTempInput > 86, 86, AddressOfCellWithRealTempInput) or =If(<expression>, <value-if-true>, <value-if-false>)

Repeat and fade.


Rho


thanks rho but is there also a way to include that if 0 temp is given for the day the gdd temp will be set at 50

 

-----signature-----
peace me for mod! dancing
thinking Misbeller of mightbe thinking
hugs I love me applause love i you love
flag Go..VO..GO... flag
praying I God of miself. praying
Link to this post
Rhodoman 
Posts: 81,876
Registered: Jun 14, '01
Extended Info (if available)
Real Post Cnt: 80,454
User ID: 154,069
Subject: need some excel help if u can shed light
mightbe posted:
Rhodoman posted:
=If(AddressOfCellWithRealTempInput > 86, 86, AddressOfCellWithRealTempInput) or =If(<expression>, <value-if-true>, <value-if-false>)

Repeat and fade.


Rho


thanks rho but is there also a way to include that if 0 temp is given for the day the gdd temp will be set at 50
Nest 'em.

Rho

 

-----signature-----
Rho is correct. - Varece
Venit hiems quidquid Latine dictum sit altum viditur
Referring to illegal aliens as 'immigrants' is the same as referring to shoplifters as 'shoppers' - Dorvinion
Link to this post
mightbe 
Title: lalalalalalalalalalalalalalalalalalalalalalalalala
Posts: 16,082
Registered: Jul 21, '03
Extended Info (if available)
Real Post Cnt: 15,729
User ID: 824,229
Subject: need some excel help if u can shed light
Rhodoman posted:
mightbe posted:
[quote=Rhodoman or =If(<expression>, <value-if-true>, <value-if-false>)

Repeat and fade.


Rho


thanks rho but is there also a way to include that if 0 temp is given for the day the gdd temp will be set at 50
Nest 'em.

Rho[/quote]

no idea what nestem means or is it

=If(AddressOfCellWithRealTempInput > 86, 86, AddressOfCellWithRealTempInput)

 

-----signature-----
peace me for mod! dancing
thinking Misbeller of mightbe thinking
hugs I love me applause love i you love
flag Go..VO..GO... flag
praying I God of miself. praying
Link to this post
Sith_Mauler 
Posts: 24,642
Registered: Dec 21, '02
Extended Info (if available)
Real Post Cnt: 24,438
User ID: 750,977
Subject: need some excel help if u can shed light
screw excel

i hate that program with a passion.

 

-----signature-----
Well I ain't first class
But I ain't white trash
I'm wild and a little crazy too
I have seen a lot of things in my life time.
That is why I walk the line I walk.
Link to this post
Rhodoman 
Posts: 81,876
Registered: Jun 14, '01
Extended Info (if available)
Real Post Cnt: 80,454
User ID: 154,069
Subject: need some excel help if u can shed light
Okie.

Say you never want it to be above 86 or below 50.

You put the REAL temperature into cell B15

In the cell you want to always be between 50 and 86, you put:


=If ( B15 > 86, 86, If( B15 < 50, 50, B15) )

One "If" formula nested inside the other.

Rho

 

-----signature-----
Rho is correct. - Varece
Venit hiems quidquid Latine dictum sit altum viditur
Referring to illegal aliens as 'immigrants' is the same as referring to shoplifters as 'shoppers' - Dorvinion
Link to this post
ArchrikerHG 
Posts: 9,363
Registered: Feb 20, '04
Extended Info (if available)
Real Post Cnt: 9,188
User ID: 897,067
Subject: need some excel help if u can shed light
I could tell you how to do it in Java, but not in VB which I think is what excel uses.

 

-----signature-----
Soo... useless boobs run the world eh?
Sounds about right actually-Alkizmo
The jewel sequins, Hollywood designer clothes and makeup, and flashing LED panorama really
capture the dark cynical hopelessness of the grunge era -Vega
Archriker lvl 250 ret.
Link to this post
mightbe 
Title: lalalalalalalalalalalalalalalalalalalalalalalalala
Posts: 16,082
Registered: Jul 21, '03
Extended Info (if available)
Real Post Cnt: 15,729
User ID: 824,229
Subject: need some excel help if u can shed light
Rhodoman posted:
Okie.

Say you never want it to be above 86 or below 50.

You put the REAL temperature into cell B15

In the cell you want to always be between 50 and 86, you put:


=If ( B15 > 86, 86, If( B15 < 50, 50, B15) )

One "If" formula nested inside the other.

Rho


=If(C20 > 86, 86, If( C20 = 0, 50, C20) ?

 

-----signature-----
peace me for mod! dancing
thinking Misbeller of mightbe thinking
hugs I love me applause love i you love
flag Go..VO..GO... flag
praying I God of miself. praying
Link to this post
mightbe 
Title: lalalalalalalalalalalalalalalalalalalalalalalalala
Posts: 16,082
Registered: Jul 21, '03
Extended Info (if available)
Real Post Cnt: 15,729
User ID: 824,229
Subject: need some excel help if u can shed light
woot got it thanks rho

 

-----signature-----
peace me for mod! dancing
thinking Misbeller of mightbe thinking
hugs I love me applause love i you love
flag Go..VO..GO... flag
praying I God of miself. praying
Link to this post

Valid XHTML 1.0 Transitional Powered by PHP