+ Reply to Thread
Results 1 to 4 of 4

Answers YES and NO

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    FL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Answers YES and NO

    I would like to get answers YES or NO for this formula
    =sum((Y4/(G4+M4+O4+Q4))

    if Sum = <1=YES (I couldn't put equal sign under< but it must be there )
    -

    if Sum = >1 = NO

    I have no idea if Excel can do this and I really appreciate your help.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: I am lost...can Excel give me answers YES and NO (with a specific formula)?

    Try like this

    =IF(Y4/(G4+M4+O4+Q4)>1,"No","Yes")
    Audere est facere

  3. #3
    Registered User
    Join Date
    12-16-2011
    Location
    FL
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: I am lost...can Excel give me answers YES and NO (with a specific formula)?

    Thank you very much!

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: I am lost...can Excel give me answers YES and NO (with a specific formula)?

    If the sum of G4+M4+O4+Q4 equals zero the formula will not return Yes or No, but a divide by zero error (#DIV/0!).

    You should use the IFERROR function to return a default value if this error occurs

    =IFERROR(IF(Y4/SUM(G4,M4,O4,Q4)>1,"No","Yes"),"")

    Another way:

    =IFERROR(LOOKUP(Y4/SUM(G4,M4,O4,Q4),{-1,1},{"Yes","No"}),"")
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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