Re: Test if a number falls between 2 values

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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: "PORTING C" > Function Pointers issue.
    ... Internet and I came across a sample at: ... It's a typo. ... Note an extra pair of parentheses. ...
    (microsoft.public.vc.language)
  • 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: "PORTING C" > Function Pointers issue.
    ... Internet and I came across a sample at: ... It's a typo. ... Note an extra pair of parentheses. ...
    (microsoft.public.vc.language)