+ Reply to Thread
Results 1 to 6 of 6

IF function with Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-12-2014
    Location
    Macon, GA
    MS-Off Ver
    Excel 2010
    Posts
    5

    IF function with Conditional Formatting

    First off, this is my first actual post here, but I've found very helpful information in the past, so thanks to many of you for help previously given!
    Now for my question...I have a schedule for my personnel. When picking their work and off days, there can only be 50% off on any given day, and only 25% off on special days and holidays. I already have the formulas in place to add the numbers and to alert me when there is an excess above 50% off. I have created an additional column("Special") that I'd like to use for the special days when only 25% can be off. I want to be able to enter "y" in this column, then have it change the formula to figure percentage and to turn red when it exceeds 25%. I have included a working copy of the roster for anyone who may be able to help.
    Thanks in advance!
    Garrett
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-26-2013
    Location
    Norway
    MS-Off Ver
    Excel 2013
    Posts
    67

    Re: IF function with Conditional Formatting

    Quote Originally Posted by gast261 View Post
    I have created an additional column("Special")
    I couldn't see that additinal coloumn so I added it in coloumn C, and added this conditional formatting:
    =AND(Z7>0,25;OR(C7="Y";C8="Y"))

    NEW PICKING ROSTER-Post 15-Experimental.xlsx
    Best regards

    Per Erik Midtr?d

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: IF function with Conditional Formatting

    Hi and welcome to the forum

    I dont see a column for "Special", but lets say it is in Z. Delete the CF rule that you have and use this instead...
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =IF(Z8="Y",Y7>=0.025,Y7>=0.5)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: IF function with Conditional Formatting

    Also, the formulas in V:X can be simplified to this...
    =COUNTA(E7:H8)

  5. #5
    Registered User
    Join Date
    01-12-2014
    Location
    Macon, GA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: IF function with Conditional Formatting

    Erik and Ford, thank you both so very much for your help. That got it done for me! I actually wound up integrating both solutions to give me some additional information.
    I hope that you both have a great evening!
    Garrett

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: IF function with Conditional Formatting

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Conditional formatting using MAX function
    By yardenon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2013, 12:09 PM
  2. Conditional Formatting with IF function
    By navneetvyas in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-05-2013, 03:36 AM
  3. Conditional formatting with NOW() function
    By richbriggs in forum Excel General
    Replies: 3
    Last Post: 05-10-2012, 08:01 PM
  4. conditional formatting with IF/AND function
    By mishka02 in forum Excel General
    Replies: 3
    Last Post: 03-09-2012, 01:36 AM
  5. Conditional Formatting - IF Function
    By thecat131 in forum Excel General
    Replies: 2
    Last Post: 12-29-2011, 02:19 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