+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    16

    Conditional Formatting

    Hi All,

    I would like to be able to conditionally format an entire column of data, row by row, depending on 2 sets of criteria.

    In column R I have no of days - this is the column I would like to conditionally format to red and bold font if it meets the following criteria:

    - If corresponding cell in same row of column N s not blank and cell in same row of column O is 1, and R is more than 10, format.

    OR

    - If corresponding cell in same row of column N s not blank and cell in same row of column O is 2, and R is more than 15, format.

    Can someone please tell me how to do this?

    I've been trying all week but all i manage to do it make the whole column red regardless of any formula.


    Thanks
    NHHO Complaints test.xlsx

  2. #2
    Registered User
    Join Date
    01-28-2014
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Conditional Formatting

    I've attached the spreadsheet Thanks

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel for Mac 2011
    Posts
    8

    Smile Re: Conditional Formatting

    Hi luciedefreitas
    I have added the conditional formatting to column R (just for the range of data you currently have populated
    To explain, under conditional formatting choose 'highlight cell rules' then from the list 'More rules'
    Choose use a formula to determine which cells to format
    this is the formula based on
    "If corresponding cell in same row of column N s not blank and cell in same row of column O is 1, and R is more than 10, format."
    formula: =AND($M4>0,$O4=1,$R4>10)
    applies to: Complaints!$R$4:$R$15

    If you change cell R4 to 11 you will see it formats
    Let me know how you go!NHHO Complaints test.xlsx

  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
    53,048

    Re: Conditional Formatting

    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 =OR(AND(N4<>"",O4=1,R4>10),AND(N4<>"",O4=2,R4>15))

    None of your sample data matches those criteria though, so test it on additional data
    Last edited by FDibbins; 02-01-2014 at 09:36 PM. Reason: Removed invalid comment
    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

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel for Mac 2011
    Posts
    8

    Re: Conditional Formatting

    Hi FDibbins

    This thread was a question from luciedefreitas, I offered a solution

  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
    53,048

    Re: Conditional Formatting

    gmsninja, my most sincere apologies I used the wrong canned reply to you (I have deleted it), it should have read...

    I notice that the file you uploaded indicates 2007 or later (.xlsx), but your profile says 2003. Please update your profile as necessary, members tailor questions based on your excel version

+ 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. Replies: 1
    Last Post: 09-20-2013, 06:23 PM
  2. 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
  3. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  4. Replies: 1
    Last Post: 03-05-2012, 06:20 PM
  5. 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