+ Reply to Thread
Results 1 to 5 of 5

if and or function

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    23

    if and or function

    Hi,
    >
    > How can I use if and or scenario to get excel to 'ignore' if the cell has zero in column A or B, and just use the other yield with a % as my total yield.
    >
    > Column C is A * B.
    >
    > Thanks
    >
    > Yield 1*Yield 2*Total Yield
    > 0%*100%*0%
    > 99%*98%*97%
    > 100%*0%*0%
    > 95%*0%*0%
    > 0%*85%*0%
    > 100%*100%*100%

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: if and or function

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-08-2010
    Location
    Montenegro
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: if and or function

    So, in your example, A1 is zero, B1 is 100%, so you want C1 to be 100%, and not 0%?

    I'd do it this way:

    =IF(A1=0,B1,IF(B1=0,A1,A1*B1))

    or this way:

    =IF(OR(A1=0,B1=0),A1+B1,A1*B1)

    (In this second formula, if either of the cells is zero, it summarizes them - since it's 0, it doesn't affect other number).

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: if and or function

    Please be aware that this is a duplicate thread.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    05-07-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: if and or function

    Quote Originally Posted by AliGW View Post
    Please be aware that this is a duplicate thread.
    I am really sorry about that. when I posted it first an error message appeared, so i tried to re-post it and it went in twice. Apologies.

+ 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. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  2. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  3. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. Replies: 2
    Last Post: 03-20-2009, 01:29 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