Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default can i format a group of cells based on the number entered in a cel


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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default can i format a group of cells based on the number entered in a cel

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
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
Loop based on number entered in userform Richhall[_2_] Excel Worksheet Functions 1 September 17th 09 03:58 PM
Need to set up a number based on date entered teeech Excel Discussion (Misc queries) 1 July 25th 09 10:13 AM
Autoformat/Conditional Format of entered Number TheBusMan Excel Discussion (Misc queries) 2 July 4th 09 10:43 PM
Format cell so number entered will show only one way Frustrated in AZ Excel Worksheet Functions 3 May 19th 08 05:26 PM
Changing chart color based on number entered confused chart girl Charts and Charting in Excel 0 October 27th 05 05:26 PM


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