+ Reply to Thread
Results 1 to 7 of 7

IF/AND in Conditional Formatting

  1. #1
    Forum Contributor
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007 & 2016
    Posts
    124

    IF/AND in Conditional Formatting

    Hi - for starters, I'm working with Excel 2007 with XP Pro...

    I'd like to use conditional formatting to highlight in bold red all of the cells in column A that exceed these two conditions:
    1) the cell value in column A is > 0.15, AND
    2) the cell value in column A is > than the value in the same row in column B; again, both of these conditions must be met.

    On the attached spreadsheet, I've demonstrated what I'd like to do. I've tried using the "Format only the cells that contain" Rule Type, but doing this produces many false positives. I think "Use a formula to determine which cells to format" with an IF/AND formula is what I need, but I haven't been able to figure out the correct syntax.

    Thanks very much.
    Attached Files Attached Files
    Last edited by OverKnight; 01-06-2012 at 04:13 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF/AND in Conditional Formatting

    Hi

    The formula in conditional formatting, is:

    =AND($A1>0.15;$A1>B1)

    hOPE TO HELPS YOU.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007 & 2016
    Posts
    124

    Re: IF/AND in Conditional Formatting

    Thank you, Fotis. However, it's not working for me. Realize that the spreadsheet I had attached had cells A1, A4, A10, A13 and A16 manually boldfaced and colored red. When I applied your formula to my spreadsheet, it didn't work, and when I removed the red/bold from the sheet you sent back, it wasn't working there, either. Any other ideas?

    Also, sorry I posted this where I did; I didn't realize this section was for Outlook. I saw "Formatting and Functions", so I thought that's where I should post; I totally missed the word "Outlook".

    Thanks again.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF/AND in Conditional Formatting

    Hi OverKnight

    1)
    Thank you, Fotis. However, it's not working for me. Realize that the spreadsheet I had attached had cells A1, A4, A10, A13 and A16 manually boldfaced and colored red. When I applied your formula to my spreadsheet, it didn't work, and when I removed the red/bold from the sheet you sent back, it wasn't working there, either. Any other ideas?
    Take a look to the new attachement(Same formula, as Yesterday's). Works perfectly for me! For you???
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007 & 2016
    Posts
    124

    Re: IF/AND in Conditional Formatting

    Thank you, Fotis. I have absolutely NO idea why it wouldn't work for me yesterday, but today it works perfectly!

    Thanks again!

  6. #6
    Registered User
    Join Date
    04-13-2012
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: IF/AND in Conditional Formatting

    Quote Originally Posted by OverKnight View Post
    Hi - for starters, I'm working with Excel 2007 with XP Pro...

    I'd like to use conditional formatting to highlight in bold red all of the cells in column A that exceed these two conditions:
    1) the cell value in column A is > 0.15, AND
    2) the cell value in column A is > than the value in the same row in column B; again, both of these conditions must be met.

    On the attached spreadsheet, I've demonstrated what I'd like to do. I've tried using the "Format only the cells that contain" Rule Type, but doing this produces many false positives. I think "Use a formula to determine which cells to format" with an IF/AND formula is what I need, but I haven't been able to figure out the correct syntax.

    Thanks very much.
    Thank you, Fotis. However, it's not working for me. Realize that the spreadsheet I had attached had cells A1, A4, A10, A13 and A16 manually boldfaced and colored red. When I applied your formula to my spreadsheet, it didn't work, and when I removed the red/bold from the sheet you sent back, it wasn't working there, either. Any other ideas?



    ______________________________________

    nfl nike jerseys 2012
    nhl jerseys shop
    Cheap Boston Bruins Jersey

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF/AND in Conditional Formatting

    Hi and welcome to the forum.

    Your post is against the forum rules(Number 2).

    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
    Pls. start, your own Thread and we'll find your solution.

+ 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