PC Review


Reply
Thread Tools Rate Thread

can i format a group of cells based on the number entered in a cel

 
 
mikeinohio
Guest
Posts: n/a
 
      1st Dec 2008

I have a i have a range of cells (B7:Z14) numbered 1-200 that will
correspond to the number of jobs given to an employee to complete and i have
a cell that the number of jobs can be typed into and when i type that number
for example the number 35, cells 1-35 in that range will automatically will
have a green background and white lettering, and if the number is lower than
two hundred it will format the rest of the cells within that range with a
black background and white lettering and if selected again after the original
formatting, the format will change to a red background and white lettering,
amnd if it is selected by mistake after the first formating is there a way
to selected it and change it back to a green backgound and white lettering or
is ther a better approach to this.

 
Reply With Quote
 
 
 
 
Stefi
Guest
Posts: n/a
 
      1st Dec 2008
If cell for number of jobs is A1 then select range B7:Z14 and apply
conditional formatting with these formulae
1st condition (white on green)
=OR(ROW()-6<=INT($A$1/25),AND(ROW()-6=INT($A$1/25)+1,COLUMN()-1<=MOD($A$1,25)))
2nd condition (white on black)
=NOT(OR(ROW()-6<=INT($A$1/25),AND(ROW()-6=INT($A$1/25)+1,COLUMN()-1<=MOD($A$1,25))))

But I didn't understand the second part of your request:
"if selected again after the original
> formatting, the format will change to a red background and white lettering,
> amnd if it is selected by mistake after the first formating is there a way
> to selected it and change it back to a green backgound and white lettering"


Please try to clarify it!

Regards,
Stefi



„mikeinohio” ezt *rta:

>
> I have a i have a range of cells (B7:Z14) numbered 1-200 that will
> correspond to the number of jobs given to an employee to complete and i have
> a cell that the number of jobs can be typed into and when i type that number
> for example the number 35, cells 1-35 in that range will automatically will
> have a green background and white lettering, and if the number is lower than
> two hundred it will format the rest of the cells within that range with a
> black background and white lettering and if selected again after the original
> formatting, the format will change to a red background and white lettering,
> amnd if it is selected by mistake after the first formating is there a way
> to selected it and change it back to a green backgound and white lettering or
> is ther a better approach to this.
>

 
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
Loop based on number entered in userform Richhall Microsoft Excel Worksheet Functions 1 17th Sep 2009 03:58 PM
Need to set up a number based on date entered teeech Microsoft Excel Misc 1 25th Jul 2009 10:13 AM
moving to specific cells based on the value entered =?Utf-8?B?SkFDb25ub2xseQ==?= Microsoft Excel Programming 2 7th Mar 2007 02:24 PM
Way to Concatonate cells in a row based on the order they were entered? dsiedt@gmail.com Microsoft Excel Worksheet Functions 2 10th Nov 2006 11:45 PM
How to find values for a group of cells based on another group of cells Mike Microsoft Excel Worksheet Functions 0 9th Sep 2003 08:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:21 PM.