+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting And Countif

  1. #1
    Registered User
    Join Date
    11-05-2004
    Posts
    10

    Exclamation Conditional Formatting And Countif

    I am trying to use in conditional formatting the following formula:

    =IF(COUNTIF(InputPC,F10)>1,TRUE,FALSE) So it will highlight any duplicates.
    But the way i setup the spreadsheet with "Select" as the default is no working. Any suggestions? or am I doing something wrong. Please it is urgent!!

    The spreadsheet:

    in row 10 columns F thru AT, I have a data validation with a list. The list has "Select "as a default. In column E12 thru E50 I have accounts:


    1001 1002 1003 Select Select ..... etc

    Marketing
    Admin
    '
    '
    '
    etc.

    Thank you
    Cafe

  2. #2
    Bob Phillips
    Guest

    Re: Conditional Formatting And Countif

    Cafe,

    Firstly you only need a formula of

    =COUNTIF(InputPC,F10)>1

    as that returns TRUE or FALSE as required by CF.

    Then, what is InputPC defined as?

    When you setup CF, select F10:AT10 and add the condition formul as above.

    --
    HTH

    Bob Phillips

    "cafe" <cafe.1tj5qb_1123646706.2457@excelforum-nospam.com> wrote in message
    news:cafe.1tj5qb_1123646706.2457@excelforum-nospam.com...
    >
    > I am trying to use in conditional formatting the following formula:
    >
    > =IF(COUNTIF(InputPC,F10)>1,TRUE,FALSE) So it will highlight any
    > duplicates.
    > But the way i setup the spreadsheet with "Select" as the default is no
    > working. Any suggestions? or am I doing something wrong. Please it
    > is urgent!!
    >
    > The spreadsheet:
    >
    > in row 10 columns F thru AT, I have a data validation with a list.
    > The list has "Select "as a default. In column E12 thru E50 I have
    > accounts:
    >
    >
    > 1001 1002 1003 Select Select
    > .... etc
    >
    > Marketing
    > Admin
    > '
    > '
    > '
    > etc.
    >
    > Thank you
    > Cafe
    >
    >
    > --
    > cafe
    > ------------------------------------------------------------------------
    > cafe's Profile:

    http://www.excelforum.com/member.php...o&userid=16145
    > View this thread: http://www.excelforum.com/showthread...hreadid=394458
    >




  3. #3
    Registered User
    Join Date
    11-05-2004
    Posts
    10

    Exclamation Conditional Formatting And Countif

    Thanks Bob,

    The INPUTPC is the range F10:AT10.

    Yes, that works fine except that I have "Select" through out the range. Is there any way I can have countif check for duplicates but ignore if the cell has the word Select?

    See attached image

    Please help, i need to resolve this today!!.

    Reagards,

    Cafe
    Attached Images Attached Images
    Last edited by cafe; 08-10-2005 at 09:58 AM.

  4. #4
    Registered User
    Join Date
    11-05-2004
    Posts
    10

    Smile Conditional Formatting And Countif

    Bob,

    I solved my problem: I was just looking to hard I guessed. Here is my final formula

    =IF(F10="Select","Select",COUNTIF(INPUTPC,F10)>1)

    Thanks.

    Cafe

  5. #5
    Bob Phillips
    Guest

    Re: Conditional Formatting And Countif

    Try this formula

    =AND(COUNTIF(InputPC,F10)>1,F10<>"Select")

    --
    HTH

    Bob Phillips

    "cafe" <cafe.1tjxiw_1123682730.09@excelforum-nospam.com> wrote in message
    news:cafe.1tjxiw_1123682730.09@excelforum-nospam.com...
    >
    > Thanks Bob,
    >
    > The INPUTPC is the range F10:AT10.
    >
    > Yes, that works fine except that I have "Select" through out the
    > range. Is there any way I can have countif check for duplicates but
    > ignore if the cell has the word Select?
    >
    > See attached image
    >
    > Please help, i need to resolve this today!!.
    >
    > Reagards,
    >
    > Cafe
    >
    >
    > +-------------------------------------------------------------------+
    > |Filename: DupCoutIf.gif |
    > |Download: http://www.excelforum.com/attachment.php?postid=3682 |
    > +-------------------------------------------------------------------+
    >
    > --
    > cafe
    > ------------------------------------------------------------------------
    > cafe's Profile:

    http://www.excelforum.com/member.php...o&userid=16145
    > View this thread: http://www.excelforum.com/showthread...hreadid=394458
    >




  6. #6
    Bob Phillips
    Guest

    Re: Conditional Formatting And Countif

    See my alternative.

    --
    HTH

    Bob Phillips

    "cafe" <cafe.1tk0az_1123686464.4369@excelforum-nospam.com> wrote in message
    news:cafe.1tk0az_1123686464.4369@excelforum-nospam.com...
    >
    > Bob,
    >
    > I solved my problem: I was just looking to hard I guessed. Here is my
    > final formula
    >
    > =IF(F10="Select","Select",COUNTIF(INPUTPC,F10)>1)
    >
    > Thanks.
    >
    > Cafe
    >
    >
    > --
    > cafe
    > ------------------------------------------------------------------------
    > cafe's Profile:

    http://www.excelforum.com/member.php...o&userid=16145
    > View this thread: http://www.excelforum.com/showthread...hreadid=394458
    >




  7. #7
    Registered User
    Join Date
    11-05-2004
    Posts
    10

    Conditional Formatting And Countif

    Hi Bob,

    Fantastic! I used your alternative. It seems cleaner. Thanks for all your help.

    Cafe

+ 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