Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
cafe
 
Posts: n/a
Default 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


--
cafe
------------------------------------------------------------------------
cafe's Profile: http://www.excelforum.com/member.php...o&userid=16145
View this thread: http://www.excelforum.com/showthread...hreadid=394458

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

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" wrote in message
...

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   Report Post  
cafe
 
Posts: n/a
Default


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

  #4   Report Post  
cafe
 
Posts: n/a
Default


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

  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

Try this formula

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

--
HTH

Bob Phillips

"cafe" wrote in message
...

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   Report Post  
Bob Phillips
 
Posts: n/a
Default

See my alternative.

--
HTH

Bob Phillips

"cafe" wrote in message
...

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   Report Post  
cafe
 
Posts: n/a
Default


Hi Bob,

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

Cafe


--
cafe
------------------------------------------------------------------------
cafe's Profile: http://www.excelforum.com/member.php...o&userid=16145
View this thread: http://www.excelforum.com/showthread...hreadid=394458

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Phil Excel Discussion (Misc queries) 3 April 25th 05 02:28 PM
Countif and Conditional Formatting Ramiro Espinoza Excel Worksheet Functions 1 February 2nd 05 05:21 PM
Is there a way to test color formatting in countIF functions? Geni Excel Worksheet Functions 3 January 27th 05 03:31 PM
COUNTIF using formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 18th 05 07:11 PM
countif reno Excel Worksheet Functions 5 November 5th 04 12:20 PM


All times are GMT +1. The time now is 03:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"