nested formulas

D

dutchtreet

I am trying to nest a formula and it does not work. Can anyone tell me what
is wrong and how to correct it. The forumla is;
=IF(sum(ReturnTemp-105)<=10,((PresentSupplyTemp-105)>27,27,(PresentSupplyTemp-105)),0).
 
K

Ken Wright

Not sure what the ouctomes are supposed to be but my best guess at what you
are doing:-

=IF((ReturnTemp-105)<=10,IF((PresentSupplyTemp-105)>27,27,PresentSupplyTemp-
105))

You either had too many arguments in there for what you had, or not enough
arguments to be able to use the 0 as an option. If that's not doing it then
tell us what the logic in the formula is meant to be for what you are trying
to do

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :)
----------------------------------------------------------------------------

dutchtreet said:
I am trying to nest a formula and it does not work. Can anyone tell me what
is wrong and how to correct it. The forumla is;
 
T

Tim C

To fix your formula:

=IF((ReturnTemp-105)<=10,IF((PresentSupplyTemp-105)>27,27,PresentSupplyTemp-105),0)

To shorten it a bit:

=IF(ReturnTemp<=115,MIN(PresentSupplyTemp-105,27),0)

To shorten it a bit more:

=(ReturnTemp<=115)*MIN(PresentSupplyTemp-105,27)

Tim C
 
B

Biff

Hi!

Maybe this:

=IF(ReturnTemp-105<=10,IF(PresentSupplyTemp-
105>27,27,PresentSupplyTemp-105),0)

Biff
 
K

Ken Wright

Oops - that 0 wasn't superfluous after all

=IF((ReturnTemp-105)<=10,IF((PresentSupplyTemp-105)>27,27,PresentSupplyTemp-
105),0)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :)
----------------------------------------------------------------------------

Ken Wright said:
Not sure what the ouctomes are supposed to be but my best guess at what you
are doing:-
=IF((ReturnTemp-105) said:
105))

You either had too many arguments in there for what you had, or not enough
arguments to be able to use the 0 as an option. If that's not doing it then
tell us what the logic in the formula is meant to be for what you are trying
to do

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

-------------------------------------------------------------------------- --
It's easier to beg forgiveness than ask permission :)
-------------------------------------------------------------------------- --
 
D

dutchtreet

Thankyou for your help.
Arnold

Ken Wright said:
Oops - that 0 wasn't superfluous after all

=IF((ReturnTemp-105)<=10,IF((PresentSupplyTemp-105)>27,27,PresentSupplyTemp-
105),0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top