Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rick_B
 
Posts: n/a
Default SchoolWork - Coloring certain cells by text criteria


I am working on a master class-schedule for students in our school.
Depending on their program (Medical, Dental, or Pharmacy), they are
required to take some courses and not others.

Students names run down column A (A2:A11). Their program (Medical,
Dental, Pharmacy) is listed next to their name in column B. All of the
classes offered at the school are listed across row 1 (C1:R1).

Based on their respective program, I'd like to color gray, the cells of
classes not required for each student. Is there a way, short of
manually formatting each cell in the row?

Thanks. (see the screen shot -for a sample)


+-------------------------------------------------------------------+
|Filename: ExcelTip1.jpg |
|Download: http://www.excelforum.com/attachment.php?postid=3659 |
+-------------------------------------------------------------------+

--
Rick_B
------------------------------------------------------------------------
Rick_B's Profile: http://www.excelforum.com/member.php...fo&userid=5964
View this thread: http://www.excelforum.com/showthread...hreadid=391380

  #2   Report Post  
swatsp0p
 
Posts: n/a
Default


Check out FormatConditional Formatting...

cell C2:
Condition1: Formula is: B2="Dental" and set Pattern color to Gray

cell D2:

Condition1: Formula is: B2="Dental" and set Pattern color to Gray
Condition2: Formula is: B2="Pharmacy" and set Pattern color to
Gray

etc. using up to 3 conditions per cell. When done, copy C2:R2,
highlight C3:R18, pastespecialFormats

Does this work for you?

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=391380

  #3   Report Post  
Rick_B
 
Posts: n/a
Default


Thanks for your response, Bruce. That was a great idea.
I tried to use the formula as you posted, but it turned everything
gray, regardless and auto-corrected my entry to something wierd
(=B2=""Dental""").

Nonetheless, by typing in C2
Formula is: =IF($B2="Dental",TRUE,FALSE) and formatting pattern to
gray

and in D2
Formula is: =IF($B2="Dental",TRUE,FALSE) and formatting pattern to
gray
Formula is: =IF($B2="Pharmacy",TRUE,FALSE) and formatting pattern to
gray

...it works!

I would never have thought to try that otherwise -with the whole
"formula is" thing- so thanks again for your tip.


--
Rick_B
------------------------------------------------------------------------
Rick_B's Profile: http://www.excelforum.com/member.php...fo&userid=5964
View this thread: http://www.excelforum.com/showthread...hreadid=391380

  #4   Report Post  
swatsp0p
 
Posts: n/a
Default


Thanks for the feedback. I, too, have experienced CF altering the
syntax of the entered formula. Generally, re-entering the correct
syntax a 2nd time causes it to 'stick'.

In any event, you got your desired results and that is the important
thing. As in most cases, there is more than one way to accomplish a
task in Excel.

Cheers!

Bruce


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=391380

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
Large amount of text in cells - Problem text.xls (0/1) Patrick Excel Discussion (Misc queries) 3 May 5th 05 04:10 PM
Clicking cells on sheet creates Text Box. How do I turn this off? Ken Excel Discussion (Misc queries) 3 April 27th 05 11:53 PM
Combining & formatting cells with text - Excel 2002 Bob Excel Discussion (Misc queries) 4 March 4th 05 10:35 PM
counting text cells Debbie Excel Worksheet Functions 4 February 8th 05 09:00 PM
How do I get merged cells to display all text. Excel problem Excel Discussion (Misc queries) 2 November 30th 04 04:29 AM


All times are GMT +1. The time now is 12:25 PM.

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

About Us

"It's about Microsoft Excel"