+ Reply to Thread
Results 1 to 5 of 5

Greater than or equal too IF function

  1. #1
    Registered User
    Join Date
    01-04-2007
    Posts
    6

    Greater than or equal too IF function

    Im trying to use the IF function but cant seem to find what the symbol for greater than or equal too is for it. I can get it to work using greater than, but i need it to work with equal too aswell.

    Also is there way to make the cell change colour aswell as what it says in a IF function, for example the box turns green when the IF function puts Yes in the cell, and red when it puts no?

    Edit: Is there anyway to make certain cells hidden when the sheet is protected?
    Last edited by Mavericks; 01-04-2007 at 10:58 AM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Talking

    Hi,

    Simply put the equal sign (=) after the greater than (>) sign. For example, if you want return "Yes" if the value in cell C1 is equal to or greater than 5, else return "No", use the following formula:

    =IF(C1>=5,"Yes","No")

    As long as there are no more than 3 colour conditions, use Conditional Formatting from the Format menu to colour code the different scenarios. You might find that you then don't need the IF formula in a different cell. See the attached screen shot for clarification.

    Have a look at http://www.uwec.edu/help/Excel03/ws-hide.htm for hiding cells. Once you master Conditional Formatting, you may also consider changing the font colour of the cell(s) to the same colour of your spreadsheet (generally white) if it meets a certain condition. This will also 'hide' the cell contents when the sheet is printed.

    Hope this helps.

    Kind regards,

    Robert
    Attached Images Attached Images

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Mavericks
    Im trying to use the IF function but cant seem to find what the symbol for greater than or equal too is for it. I can get it to work using greater than, but i need it to work with equal too aswell.

    Also is there way to make the cell change colour aswell as what it says in a IF function, for example the box turns green when the IF function puts Yes in the cell, and red when it puts no?

    Edit: Is there anyway to make certain cells hidden when the sheet is protected?
    Hi,

    for the 'hidden', in (rightmouse) Format Cells, Protection there is a 'Hidden' option to apply when the sheet is Protected.

    hth
    ---
    Si fractum non sit, noli id reficere.

  4. #4
    Registered User
    Join Date
    01-04-2007
    Posts
    6
    Quote Originally Posted by Bryan Hessey
    Hi,

    for the 'hidden', in (rightmouse) Format Cells, Protection there is a 'Hidden' option to apply when the sheet is Protected.

    hth
    ---
    I tried that but they still showed. Never mind that wasnt all that important.

    The IF function is now working fine too thanks.

  5. #5
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    As stated above you can use conditional formatting to chang the font to white.

    Another option is to select the cells you want hidden, go to Format > Cells (CTRL+1), on the Numbers tab, select Custom, and in the Type: box enter ";;;" (without the quotes). Using this option, it is a good idea to make sure the cell property is Hidden and protect the sheet. This way the values won't appear on the formula bar.

+ 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