+ Reply to Thread
Results 1 to 5 of 5

Easy IF statement but can't figure it out

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Easy IF statement but can't figure it out

    Don’t know why this is proving so difficult. I have a measure and a benchmark. If the measure is 0 (regardless of what the benchmark is) the IF statement should return a “Yes”, otherwise the IF statement should compare the measure to the benchmark and IF the measure is greater than the benchmark, it should return a “No”, if the measure is less than or equal to the benchmark, it should return a “Yes”. I’m getting stuck with the less than or equal to.

    The IF statement currently reads like this: =IF(C2=0,"Yes",(IF(C2>=D2,"No","Yes")))

    C is the measure and D is the benchmark. I manipulated the formula a few different ways but can’t get it to give me a “No” when the measure is equal to the benchmark. I would think that if I take out the = and make it read =IF(C2=0,"Yes",(IF(C2>D2,"No","Yes"))) then that would do it but it doesn’t. I still get a “Yes” when the measure and benchmark are equal. Can anyone help?

    I attached the sample file.

    Thanks.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    05-11-2016
    Location
    Liberty Lake, Washington
    MS-Off Ver
    2010
    Posts
    79

    Re: Easy IF statement but can't figure it out

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-11-2016
    Location
    Liberty Lake, Washington
    MS-Off Ver
    2010
    Posts
    79

    Re: Easy IF statement but can't figure it out

    Your post says "if the measure is less than or equal to the benchmark, it should return a “Yes”." That's what it's doing.
    Please Login or Register  to view this content.
    If you only want it to say Yes if the Rate is less than the benchmark:
    Please Login or Register  to view this content.
    Last edited by HWScott; 06-17-2016 at 03:20 PM.

  4. #4
    Registered User
    Join Date
    02-04-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Easy IF statement but can't figure it out

    thanks. one other question, the data in the cell is in a number format and has 2 decimals (1.56) but when I click in the cell, it shows out to like 10 decimals (1.55871146518878).

    Is there anyway to format it to read as 1.56 without doing it manually (I have many like this and don't want to do each one manually)? I think that's part of my issue.

    Thanks

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Easy IF statement but can't figure it out

    If the number is the result of a formula then use rounding...

    =ROUND(your formula,2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Easy question, but can't figure ut out
    By engen44 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2015, 04:26 AM
  2. Replies: 4
    Last Post: 02-03-2014, 08:05 AM
  3. [SOLVED] Quick Macro Help - Should be easy solution but cant figure it out
    By billyshears in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-23-2013, 05:15 PM
  4. Replies: 4
    Last Post: 01-07-2013, 08:54 PM
  5. [SOLVED] quantity x amount = probably an easy one but I can't figure it out.
    By cameltoe in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-21-2012, 06:14 PM
  6. Possibly an easy question, just cant figure it out.
    By paulishuku in forum Excel General
    Replies: 4
    Last Post: 02-09-2011, 12:01 AM
  7. Easy data filtering but I can not figure it out
    By mehart in forum Excel General
    Replies: 2
    Last Post: 07-28-2009, 11:31 AM

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