Re: Test if a number falls between 2 values



Ron

Don't know why I added the both IF and AND functions.

There was no logic involved, just a typo.

Should have been simply =AND(A1>153,A1<381)

But I see =IF(A1>153,A1<381) also works.

The closer got lost in the copying to the post.


Gord

On Sat, 21 Jul 2007 16:09:48 -0400, Ron Rosenfeld <ronrosenfeld@xxxxxxxxxx>
wrote:

On Sat, 21 Jul 2007 10:47:25 -0700, Gord Dibben <gorddibbATshawDOTca> wrote:

=IF(AND(A1>153),(A1<381)

Interesting formula (although needs another close parentheses).

After I understood the logic, I could simplify it to:

=IF(A1>153,A1<381)

Which is one keystroke shorter than mine:

=AND(A1>153,A1<381)




--ron

.



Relevant Pages

  • Perspicacia
    ... That's the English spelling. ... American spelling is "benefitted". ... his documented/published objective in compiling it was to "simplify" English ... Apols for typo. ...
    (microsoft.public.windowsxp.basics)
  • Re: How to get the main forM handle in .NET
    ... Sorry about the typo, was just trying to simplify. ... pOmniConnect OmniConnect; ... The dll is loaded and addresses resolved ...
    (microsoft.public.dotnet.languages.vc)
  • Re: How to get the main forM handle in .NET
    ... "Fred Hebert" wrote in message ... > Sorry about the typo, was just trying to simplify. ... Regards, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Typo in include/linux/mmzone.h
    ... >No typo there at all. ... But we do not need the parentheses around it. ... Jan Engelhardt ... | Alphagate Systems, http://alphagate.hopto.org/ ...
    (Linux-Kernel)
  • Re: Dual port dual subnet question
    ... I tried parentheses but that did not make any difference. ... Thanks for the suggestion. ... %> Dave Uhring wrote: ... %> No typo, here is how I have it (copy and paste from putty this ...
    (comp.unix.bsd.openbsd.misc)

Quantcast