+ Reply to Thread
Results 1 to 9 of 9

Using the If rule

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Using the If rule

    Morning,

    Any help would be greatly appreciated:

    I am trying to use a formula that will give me a Y if the figure in the cell is higher than 2, and a N if the figure in the cell is lower than 3. Any ideas, I was trying this: =IF(ER2>2,"Y",IF(ER2<3,"N")) but it didn't work.

    Thanks for any help.
    Last edited by Cmorgan; 07-03-2012 at 07:04 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Using the If rule

    Try: =IF(ER2>2,"Y","N")

    But what if ER is 2.5?
    Never use Merged Cells in Excel

  3. #3
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Using the If rule

    Hi
    And what about 2,5??
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Using the If rule

    Hi

    ....And what about 2,5??
    ..And not only... Any number up to 2 will show "Y"(Even if will be more than 3!...
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Using the If rule

    2.1
    2.2
    2.3
    2.4
    2.5
    2.6
    2.7
    2.8
    2.9

    are all greater than 2 and lower than 3
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  6. #6
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Using the If rule

    Thanks guys, as it is only whole numbers it doesn't matter. However, I've realised I have few blanks so I need the formula below to leave the cell blank if ER is blank:

    Try: =IF(ER2>2,"Y","N")

    Thanks for any ideas.

  7. #7
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: Using the If rule

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Using the If rule

    Thanks guys, much appreciated

  9. #9
    Registered User
    Join Date
    07-03-2012
    Location
    DINDIGUL, INDIA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Using the If rule

    Hi!
    Pl give a little more thought: Any number >2 even 10000 is acceptable as per the first part.
    " IF(ER2<3,"N") " will work only if the number is <=2 as the 2nd "IF" will be examined only if the first "IF" condition is not satisfied.
    Pl think over again: What do you want exactly? If you want the Excel to say Y to numbers >2 then you can write : IF(ER2>2,"Y","N")

+ 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