PC Review


Reply
Thread Tools Rate Thread

Change Cell Background Color Based On Search Results

 
 
DavidJ726
Guest
Posts: n/a
 
      26th Feb 2007
Hey Gang,

I have a fairly generic calendar that I use as a team duty roster for about
30 people, which becomes quite busy as the months assignments are scheduled.
What would help me immensely as I balance the assignments, is the ability to
change the cell color based on a search criteria.

For example, I have T. Brown assigned on a Wednesday, Saturday, and
Thursday, and B. Evans assigned on a Tuesday, Thursday and Friday, and E.
Nicholas on.... etc, etc, etc..

What I would like, is the ability to enter the persons name in cell A1 (for
example), and anywhere within the range of the worksheet, the cells that
match with the persons name in A1 would change color. If A1 remains blank,
then no action is taken.

I'm currently using a countif statement to count all the occurrences which
helps with totals, (=COUNTIF(Sheet1!$A$14:$AA$89,"E. Nicholas")) but I
think being able to color code as I assign and change duties would really be
helpful.

Any help is appreciated.

Thanks!
David


 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      26th Feb 2007
One way:

Select A14:AA89, with A14 active. Choose Format/Conditional
Formatting... Set the dropdowns and input box to read

CF1: Formula is =AND($A$1<>"",A14=$A$1)
Format1: <pattern>/<your choice of color>



In article <(E-Mail Removed)>,
"DavidJ726" <(E-Mail Removed)> wrote:

> I have a fairly generic calendar that I use as a team duty roster for about
> 30 people, which becomes quite busy as the months assignments are scheduled.
> What would help me immensely as I balance the assignments, is the ability to
> change the cell color based on a search criteria.
>
> For example, I have T. Brown assigned on a Wednesday, Saturday, and
> Thursday, and B. Evans assigned on a Tuesday, Thursday and Friday, and E.
> Nicholas on.... etc, etc, etc..
>
> What I would like, is the ability to enter the persons name in cell A1 (for
> example), and anywhere within the range of the worksheet, the cells that
> match with the persons name in A1 would change color. If A1 remains blank,
> then no action is taken.
>
> I'm currently using a countif statement to count all the occurrences which
> helps with totals, (=COUNTIF(Sheet1!$A$14:$AA$89,"E. Nicholas")) but I
> think being able to color code as I assign and change duties would really be
> helpful.

 
Reply With Quote
 
Keith Bradley
Guest
Posts: n/a
 
      27th Feb 2007
I am trying to do the same thing and was wondering is it possible to have
more then 3 different values for the formating...when I get to the third one
the add button greys out....I need to have 4 values for the cells....

If it is possible anything would help...

Thanks...

Keith
"JE McGimpsey" <(E-Mail Removed)> wrote in message
news:jemcgimpsey-(E-Mail Removed)...
> One way:
>
> Select A14:AA89, with A14 active. Choose Format/Conditional
> Formatting... Set the dropdowns and input box to read
>
> CF1: Formula is =AND($A$1<>"",A14=$A$1)
> Format1: <pattern>/<your choice of color>
>
>
>
> In article <(E-Mail Removed)>,
> "DavidJ726" <(E-Mail Removed)> wrote:
>
>> I have a fairly generic calendar that I use as a team duty roster for
>> about
>> 30 people, which becomes quite busy as the months assignments are
>> scheduled.
>> What would help me immensely as I balance the assignments, is the ability
>> to
>> change the cell color based on a search criteria.
>>
>> For example, I have T. Brown assigned on a Wednesday, Saturday, and
>> Thursday, and B. Evans assigned on a Tuesday, Thursday and Friday, and E.
>> Nicholas on.... etc, etc, etc..
>>
>> What I would like, is the ability to enter the persons name in cell A1
>> (for
>> example), and anywhere within the range of the worksheet, the cells that
>> match with the persons name in A1 would change color. If A1 remains
>> blank,
>> then no action is taken.
>>
>> I'm currently using a countif statement to count all the occurrences
>> which
>> helps with totals, (=COUNTIF(Sheet1!$A$14:$AA$89,"E. Nicholas")) but I
>> think being able to color code as I assign and change duties would really
>> be
>> helpful.



 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      27th Feb 2007
If one of the 4 is a default color, then use it for all your cells, then
apply CF for the other 3 values.

If you have four values + your default, you'll need to use VBA.

In article <(E-Mail Removed)>,
"Keith Bradley" <(E-Mail Removed)> wrote:

> I am trying to do the same thing and was wondering is it possible to have
> more then 3 different values for the formating...when I get to the third one
> the add button greys out....I need to have 4 values for the cells....
>
> If it is possible anything would help...

 
Reply With Quote
 
Keith Bradley
Guest
Posts: n/a
 
      28th Feb 2007
Can your suggest a good site to learn how to do scripts...I have only did
very little programing in vba (mostly in dos based programming and c++)
never in vba....

Thanks again for all the help...

Keith
"JE McGimpsey" <(E-Mail Removed)> wrote in message
news:jemcgimpsey-(E-Mail Removed)...
> If one of the 4 is a default color, then use it for all your cells, then
> apply CF for the other 3 values.
>
> If you have four values + your default, you'll need to use VBA.
>
> In article <(E-Mail Removed)>,
> "Keith Bradley" <(E-Mail Removed)> wrote:
>
>> I am trying to do the same thing and was wondering is it possible to have
>> more then 3 different values for the formating...when I get to the third
>> one
>> the add button greys out....I need to have 4 values for the cells....
>>
>> If it is possible anything would help...



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change cell background color based on content that results from li joemc911 Microsoft Excel Misc 4 24th Mar 2010 02:16 PM
Change background color of cell based on vlookup in cell Antney Microsoft Excel Misc 1 19th Oct 2009 10:55 PM
change the color of cell background based on a result Rich Microsoft Excel Worksheet Functions 2 27th Jan 2009 07:17 PM
Change Cell Value Based on Another Cell Background Color =?Utf-8?B?SkFE?= Microsoft Excel Programming 1 18th May 2007 07:47 AM
Cell compare and based on the value change the cell background color pftiv Microsoft Excel Worksheet Functions 2 15th Jan 2004 04:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:16 AM.