+ Reply to Thread
Results 1 to 12 of 12

conditional fornatting

  1. #1
    Registered User
    Join Date
    06-03-2012
    Location
    Brisbane Austrialia
    MS-Off Ver
    Excel 2003
    Posts
    5

    conditional fornatting

    i have conditionally formatted Cell A7 to go red 5 days before and 5 days after today's date. i want to switch the conditioning of in this cell if an 'S' is entered into B7.......how do i do that

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: conditional fornatting

    Hello
    Perhaps the following conditional formatting formula:

    =AND(B7<>"S",OR(A7=TODAY()-5,A7=TODAY()+5))

    Hope this helps.
    DBY

  3. #3
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: conditional fornatting

    or you could add a condition --- formula is =B7="S" and format colour

  4. #4
    Registered User
    Join Date
    06-03-2012
    Location
    Brisbane Austrialia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: conditional fornatting

    'hi there

    firstly thx very much for giving me a helping hand....however this formula gives me a circular error message. I enjoy working with excel but getting wee bit frustrated.

    regards

  5. #5
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: conditional fornatting

    Hi
    Sorry you're getting frustrated. Hang in there! I'm not sure which formula is giving you a circular reference, but I've attached a sample file with an example of my formula and how it works. I hope I've understood what you require.

    DBY
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-06-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: conditional fornatting

    I am trying to use the conditional formatting to highlight the smallest and unique number in a column. I have been able to have the lowest number highlighted, but if there are more than one occurrences of the lowest number, it highlights both. For example, in a column with 1, 2, 3, 4, the "1" is highlighted. When I have a column with 1, 2, 3, 1, both the "1's" are highlighted. In my scenario, there is no uniquge lowest number so nothing should be highlighted. Any help would be greatly appreciated! Darrel

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: conditional fornatting

    Let's say your data is in A2:A50

    Selecting A2:A50>Conditional formatting>New Rule>Using formula

    =AND(A2=MIN(A$2:A$50), COUNTIF(A$2:A$50, A2)<2)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Registered User
    Join Date
    06-06-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: conditional fornatting

    Good try but that doesn't work. The "minimum" number could be a varible number. In column A the minimum unique number might be 2 and in column B the minimum unique number might be 4. Darrel

  9. #9
    Registered User
    Join Date
    06-03-2012
    Location
    Brisbane Austrialia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: conditional fornatting

    Today -5 Today's Date Today + 5
    6/06/2012 11/06/2012 16/06/2012




    1/06/2012 < If A7 = A2 or C2 and B7 does not contain 'S' then A7 fill colour = Red

    Conditional formula:
    =AND(B7<>"S",OR(A7=TODAY()-5,A7=TODAY()+5))



    Due to Attend Evidence Result Due to Attend Evidence Result
    12/06/12 S 12/06/12 S














    the due to attend cell will have and advanced date, and will highlight red 5 days before and 5 days after the due date. If the student successfully attended and their evidence was successful a "S" will cancel the red in the due date cell.

    I really appreciate your help and i know that in order to get the right answer one must ask the right question.

    thanks again for your help

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: conditional fornatting

    Good try but that doesn't work. The "minimum" number could be a varible number. In column A the minimum unique number might be 2 and in column B the minimum unique number might be 4.
    My formula
    =AND(A2=MIN(A$2:A$50), COUNTIF(A$2:A$50, A2)<2)
    does change with each column because the columns are not anchored (have a $ in front of them). Maybe if you upload an example spreadsheet (Go Advanced> Manage Attachments)

  11. #11
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: conditional fornatting

    Hello
    It's getting a little confusing here as dzakeski1 broke forum rule #2 and posted a question in another person's thread and received a reply. But in reply to your last post rrowdy, perhaps I haven't been getting what you require. I thought you wanted the cell highlighted if it was exactly 5 days before or 5 days after today.

    Please Login or Register  to view this content.
    Do you want the cell highlighted if it is 'between' those dates? If so take a look at my new attachment. This higlights cell A2 if it conatains a date between 5 days less than today, or 5 days greater than today, providing there is no 'S' in cell B2.

    Hope this is what you want. If not, post a sample file with some sample data and desired outcome.
    DBY
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-03-2012
    Location
    Brisbane Austrialia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: conditional fornatting

    Quote Originally Posted by DBY View Post
    Hello
    It's getting a little confusing here as dzakeski1 broke forum rule #2 and posted a question in another person's thread and received a reply. But in reply to your last post rrowdy, perhaps I haven't been getting what you require. I thought you wanted the cell highlighted if it was exactly 5 days before or 5 days after today.

    Please Login or Register  to view this content.
    highlighted if it is 'between' those dates? If so take a look at my new attachment. This higlights cell A2 if it contains a date between 5 days less than today, or 5 days greater than today, providing there is no 'S' in cell B2.

    Hope this is what you want. If not, post a sample file with some sample data and desired outcome.
    DBY

    This is exactly what i want.....thx very much for you patience. i really appreciate your time




    Regards

    R

+ 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