#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default A challenge

HI, I have a spread sheet where I key in a letter in each day against some
ones name I.E. H for Hol S for Sick, What I would like to do is when I key in
five S's, the fith S turns red. any one got any Ideas?.

Thanks in advance Wildauk
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default A challenge

I'd use a conditional format to do that.

Just to illustrate, assume that you are working in A1:E1 (I'll let you
port it to the exact range.)

Select Cell E1 and then go to the Format menu. Choose "Conditional
Formatting". In the box that pops up, change the Condition1 to be
"Formula Is" and enter the following formula:
=COUNTIF(D3:H3,"S")=5

Next, click the Format tab and change the font colour to Red. Click
Okay till you're out.

Enter an S in each cell from A1:E1. As soon as you enter the 5th, E1
should turn red.

Note that this is case sensitive, so you'll need to adjust the formula
if you want to evaluate lower case s's or a mixture. Personally, I'd
throw some data validation on the cells to force my users to enter only
choices that I wanted though.

HTH,

Ken Puls, CMA - Microsoft MVP (Excel)
www.excelguru.ca

wildauk wrote:
HI, I have a spread sheet where I key in a letter in each day against some
ones name I.E. H for Hol S for Sick, What I would like to do is when I key in
five S's, the fith S turns red. any one got any Ideas?.

Thanks in advance Wildauk

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default A challenge

Thanks Ken I'll Give it a go tomorrow. wildauk

"Ken Puls" wrote:

I'd use a conditional format to do that.

Just to illustrate, assume that you are working in A1:E1 (I'll let you
port it to the exact range.)

Select Cell E1 and then go to the Format menu. Choose "Conditional
Formatting". In the box that pops up, change the Condition1 to be
"Formula Is" and enter the following formula:
=COUNTIF(D3:H3,"S")=5

Next, click the Format tab and change the font colour to Red. Click
Okay till you're out.

Enter an S in each cell from A1:E1. As soon as you enter the 5th, E1
should turn red.

Note that this is case sensitive, so you'll need to adjust the formula
if you want to evaluate lower case s's or a mixture. Personally, I'd
throw some data validation on the cells to force my users to enter only
choices that I wanted though.

HTH,

Ken Puls, CMA - Microsoft MVP (Excel)
www.excelguru.ca

wildauk wrote:
HI, I have a spread sheet where I key in a letter in each day against some
ones name I.E. H for Hol S for Sick, What I would like to do is when I key in
five S's, the fith S turns red. any one got any Ideas?.

Thanks in advance Wildauk


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
Who's up for a challenge!! Altec101[_5_] Excel Programming 7 May 19th 06 04:34 PM
Challenge DB100[_2_] Excel Programming 1 May 6th 04 05:38 PM
A Challenge To All!!!! hybridthinker Excel Programming 3 October 17th 03 05:35 PM
This May Be A Challenge Paul D[_2_] Excel Programming 1 September 12th 03 12:12 AM
This May Be A Challenge Jose Rojas Excel Programming 0 September 11th 03 11:52 PM


All times are GMT +1. The time now is 06:19 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"