Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Senior Member
 
Posts: 118
Default how to format cells -fill color

i have a spreadsheet of seating plan of students. i have to get a particular background color(fill color) to numbers which starts from 1 to 7. to make it more clear,
if the numbers start from 1 ie,101 to 199 the cells which contain should have blue color.

if the numbers start from 2 ie,201 to 299 the cells which contain should have orange color.

if the numbers start from 3 ie,301 to 399 the cells which contain should have green color.

if the numbers start from 4 ie,101 to 499 the cells which contain should have red color.

if the numbers start from 5 ie,501 to 599 the cells which contain should have lightblue color.

if the numbers start from 6 ie,601 to 199 the cells which contain should have purple color.

if the numbers start from 7 ie,701 to 799 the cells which contain should have light green color.

kindly see the attachment. table one and three shows the same numbers.in table three i have given the fill color option. this should be the outcome for table two also.



after entering the number , we can easily make the background color using the fill color option. that is not the issue. the issue is when i enter a number in a particular cell it should show with the background color of my choice.

suggest a method to do this automatically.the cells are to be so formatted that when i enter a number it should show the fill color with the color which is predefined according to the first digit.please note that there is no permanent place for a particular number in all the tables.it will vary.it can easily be understood from the attachment table examples( as i pointed out above, if it is 110 it should be in blue.
Attached Files
File Type: zip test seating plan.zip (9.1 KB, 33 views)

Last edited by sumesh56 : September 27th 13 at 04:51 PM
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default how to format cells -fill color

Hi,

Am Fri, 27 Sep 2013 16:47:40 +0100 schrieb sumesh56:

if the numbers start from 7 ie,701 to 799 the cells which contain should
have light green color.


in your table the numbers starting with 7 have red backcolor.

select D11:N15 = Conditional Formatting = use formula ...=
Formula: =--LEFT(D11,1)=7 and choose red background color.
Repeat it for your other values.


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Senior Member
 
Posts: 118
Default

Quote:
Originally Posted by sumesh56 View Post
i have a spreadsheet of seating plan of students. i have to get a particular background color(fill color) to numbers which starts from 1 to 7. to make it more clear,
if the numbers start from 1 ie,101 to 199 the cells which contain should have blue color.

if the numbers start from 2 ie,201 to 299 the cells which contain should have orange color.

if the numbers start from 3 ie,301 to 399 the cells which contain should have green color.

if the numbers start from 4 ie,101 to 499 the cells which contain should have red color.

if the numbers start from 5 ie,501 to 599 the cells which contain should have lightblue color.

if the numbers start from 6 ie,601 to 199 the cells which contain should have purple color.

if the numbers start from 7 ie,701 to 799 the cells which contain should have light green color.

kindly see the attachment. table one and three shows the same numbers.in table three i have given the fill color option. this should be the outcome for table two also.



after entering the number , we can easily make the background color using the fill color option. that is not the issue. the issue is when i enter a number in a particular cell it should show with the background color of my choice.

suggest a method to do this automatically.the cells are to be so formatted that when i enter a number it should show the fill color with the color which is predefined according to the first digit.please note that there is no permanent place for a particular number in all the tables.it will vary.it can easily be understood from the attachment table examples( as i pointed out above, if it is 110 it should be in blue.
i got an idea to solve the problem. select all the cells . then go to conditional formatting. select between. put the ranges and select the color of your choice .done!. hands off to excel 2007.
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
How do i auto fill cell color based on other cells' color? Kchatzi Excel Programming 1 May 22nd 12 09:43 PM
Can search by cell format like fill color? T-Diego Excel Worksheet Functions 1 April 29th 06 12:23 AM
change fill color of a range of cells based on color of a cell? DarMelNel Excel Programming 0 March 2nd 06 06:35 PM
Excel 2003 will not display color fonts or color fill cells DaveC Excel Worksheet Functions 1 April 11th 05 04:38 PM
My excel 2003 wont let me fill cells with color or color the tabs. trizog New Users to Excel 2 February 22nd 05 06:43 PM


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