+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting using IF and AND

  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    Glasgow
    MS-Off Ver
    Office 2007
    Posts
    5

    Conditional Formatting using IF and AND

    Hello,

    I have a spreadsheet like this excel stuff.jpg and what i am trying to do is to create some conditional formatting where it will find the cell with "Break" in it and then change the colour of the cell with the time in it. so if its over 10min red, under 10min green.

    I have tried to use

    =AND($A$6:$A$30="Break", $D$6:$D$30<=00:10:00)

    but that didnt work. Any suggestions?

    Thanks

    Andy

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Conditional Formatting using IF and AND

    In conditional formatting reference cell use below function

    =AND($A6="Break", $D6<=00:10:00)

    and in Apply to reference select the range till where u want (Conditional Formating -> Manage Rule -> Select ur C.Formating -> Apply to field)
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Conditional Formatting using IF and AND

    Select D6:D30 and make a New Rule for conditional formatting using the formulas below and set the format as per your choice.

    For Red:
    Please Login or Register  to view this content.
    For Green
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  2. Opening xlsm files with conditional formatting opens with removed conditional formatting
    By Martijn.Steenbakker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-07-2014, 05:38 AM
  3. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  4. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  5. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  6. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  7. Replies: 2
    Last Post: 11-02-2007, 12:03 PM

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