Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8424157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:54:47+00:00 2026-06-10T03:54:47+00:00

Excel appears to not use lazy evaluation for AND() and OR() functions. For example:

  • 0

Excel appears to not use lazy evaluation for AND() and OR() functions. For example:

=AND(A1<>0, B1/A1>.5)

will result in a value of #DIV/0!. One alternative would be to use an if statement:

=IF(A1<>0, B1/A1>.5, FALSE)

however this becomes messy if the AND function was planned to be used inside an IF function (or possible some nested IFs). Is there a better (i.e. more readable) solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:54:48+00:00Added an answer on June 10, 2026 at 3:54 am

    Don’t think you can do much better than what you’ve got. Here’s a few other alternatives:

    =IF(A1,B1/A1>.5) 
    =IFERROR(B1/A1>.5,FALSE)
    =COUNT(N(A1<>0),N(B1/A1>.5))=2
    

    Although it’s longer, the last one can be extended to more conditions and is easily modified to OR by changing =2 to >0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When Excel determines the axis values it will use to represent your data in
I have an Excel spreadsheet with calculations I would like to use in a
Excel-VBA 2007 appears to have a 64k limit on the size of arrays passed
Excel 2003 Question: I'd like to have one cell represent a range of cells.
I finally thought I had found a way to acutally use excel productively but
I'm sending a number to Excel 2007 as a string (Cell.Value := '2,5') using
I've found this excel add-in to buy that appears to do what I need,
I am trying to use xlwt to create MS-Excel files from the contents of
In one of my Excel workbooks I have created a macro containing the following
I have Excel export within Access 2007. The only thing I am not entirely

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.