+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting - formula issue

  1. #1
    Registered User
    Join Date
    10-05-2011
    Location
    NYC
    MS-Off Ver
    Excel 2010 Professional Plus
    Posts
    44

    Conditional Formatting - formula issue

    Hello,

    I have written the following two formulas as separate conditions within CD. They each produce the desired CD result:

    =COUNTIFS('Sheet2'!$F:$F,$A45,'Sheet2'!$K:$K,$H45)
    =COUNTIFS($J45,"DELETED")

    However, when I combine them as the following, the CD fails:

    =COUNTIFS('Sheet2'!$F:$F,$A45,'Sheet2'!$K:$K,$H45,$J45,"DELETED")

    How can I combine both sets of conditions to produce the desired CD?

    Thank you in advance!

    Bjordion
    Last edited by Bjordion; 06-06-2012 at 03:39 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Conditional Formatting - formula issue

    Try it like this:

    =OR(COUNTIFS('Sheet2'!$F:$F,$A45,'Sheet2'!$K:$K,$H45),$J45="DELETED")

    or like this:

    =AND(COUNTIFS('Sheet2'!$F:$F,$A45,'Sheet2'!$K:$K,$H45),$J45="DELETED")

    depending on how you want them connected.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-05-2011
    Location
    NYC
    MS-Off Ver
    Excel 2010 Professional Plus
    Posts
    44

    Re: Conditional Formatting - formula issue

    Always the simplest solution...

    Many thanks Pete.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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