+ Reply to Thread
Results 1 to 7 of 7

Thread: IF/AND in Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    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 03:13 PM.

  2. #2
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003 & Recently 2007
    Posts
    2,323

    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.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  3. #3
    Registered User
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    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
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003 & Recently 2007
    Posts
    2,323

    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
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  5. #5
    Registered User
    Join Date
    01-09-2009
    Location
    NJ/NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    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
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003 & Recently 2007
    Posts
    2,323

    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.
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    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.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

+ 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.2.0