Novice looking for help on Colouring cells

Mr Mez
04-16-2008, 11:03 AM
Little about me as its my first post!!

23 year old male loving life and happerly engaged. working for a large world wide company (McDonalds! I'm far from ur streriotyping!) as a 1st assisatant Store mgr.Enjoy everything to do with computing such as simple day to day work, building my own, and also gaming. have an IQ of 138 (like to slip that in when possible!)
Studied a little at school/collage about simple programing in VB/excel eg forms macros etc but that was 5years ago and really wish i had taken it further! 5 years has past and can only really remember the very basics.

:confused: PROBLEM:
I am creating a table for work to work out avargae times of service of chicken products through the day. We get a print out from the tills and it has Transcount (number of customers) and average time for that hour. so the table is quite simple. See below:


The problem i have is that i need to make it so that when a number is added into the time colums, the cell colour chages depending what the number in it. for instance, if the number is 0 then there is no colour, under 35 will be bright green ( ColourIndex 4), 35 to 50 will be Orange (ColourIndex 45) and over 50 Red (ColourIndex 3).

Is this at all possible that you can create a cell to do this and still enter numbers into it???

Does this make sence????


Thanks in advance!

Mr Mez

Colin Legg
04-16-2008, 12:20 PM
Hi Mr Mez and welcome to the forum! :)

Please be sure to read the posting guidelines (http://www.xtremevbtalk.com/faq.php?faq=evbf_faq#faq_evbf_rules).


That's quite an introduction... there's a WHO ARE YOU thread (http://www.xtremevbtalk.com/showthread.php?t=2314) in our random thoughts board if you want to share some more ;)

Onto your problem at hand....

I've got some good news: you don't need any VBA to do this!! Hoorah. Excel has a fantastic facility called conditional formatting which allows for up to 3 conditions. Conveniently you appear to have 3 conditions:
less than 35 --> Green
35 to 50 --> Orange
over 50 --> Red

Check it out in your helpfiles and post back if you have any questions.

Regards
Colin

Mr Mez
04-16-2008, 12:27 PM
:whoops: I cant belive it was that simple! Sorry for the waste of space in forum!:whoops:

Many thanks

Colin Legg
04-16-2008, 12:36 PM
Not at all.... it was a perfectly valid question!!!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum