+ Reply to Thread
Results 1 to 5 of 5

Needing help with "IF-Or" formula in Excel 2007

Hybrid View

  1. #1
    Registered User
    Join Date
    06-15-2010
    Location
    michigan
    MS-Off Ver
    Excel 2013
    Posts
    31

    Needing help with "IF-Or" formula in Excel 2007

    Hello All : I'm having trouble figuring a formula.
    Example:
    Cell A1 is a Percentage Data Cell, all others are Numerical Cells.

    Argument: If B1=0, or B2=0, or B2 =<0 then A1 needs to read 0%. Otherwise A1=B2/B1.

    I'm not getting the Parent's. right or something. I'm getting a -% in A1 whereas it needs to be 0% or greater.

    Thanks for any help.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Needing help with "IF-Or" formula in Excel 2007

    Try this in A1:

    =IF(B1=0,0,IF(B2<0,0,B2/B1))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-15-2010
    Location
    michigan
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Needing help with "IF-Or" formula in Excel 2007

    Pete : Thanks so much ! Its working for me now. I wasn't aware you could repeat the "If" scenario multiple times in the same argument.

    Thanks again !

  4. #4
    Registered User
    Join Date
    06-15-2010
    Location
    michigan
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Needing help with "IF-Or" formula in Excel 2007

    Pete: How do I mark thread "solved" ?

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: Needing help with "IF-Or" formula in Excel 2007

    It's called "nesting" of formulae - quite an important concept. You could also do it like this:

    =IF(OR(B1=0,B2<0),0,B2/B1)

    Thanks for the rep - to mark the thread as solved, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Why #VALLUE! error on "correct" formula in Excel 2007?
    By pollyannadanna in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-15-2013, 10:17 AM
  2. [SOLVED] Excel 2007: How to Convert "5/2/2013" to "May" then subtract a Month so it's "Apr"
    By Golom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 02:00 AM
  3. Queries Access 2007 records from Excel 2007 and receive "No Value ... Required parameters"
    By NewbyNewbyNew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 06:49 PM
  4. Replies: 2
    Last Post: 05-17-2012, 03:12 AM
  5. Replies: 3
    Last Post: 07-08-2011, 02:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1