Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default automate the colouring of lots of cells

Hi,

I wonder if anyone can help me as i don't know where to start!

I have a column in an excel spreadsheet which is full of numbers in the
format 00:00:00 (HH:MM:SS).
There are alot of fields in this column!!!

What i have just had to do manually is go through and change the fill
colour of the cells if the value is greater than or equal to 00:20:00.
If the value of the cell was above 00:30:00 then the cell must be a
different colour. Less than 00:20:00 and it should be a another colour.
So in total 3 colours.
As the column is down to row number '4950' - you can see that this will
be a very lengthy process!

Is there a way to automate this process? (with a macro?)
If there is can anyone point me in the right direction?

Thanks

Matt!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default automate the colouring of lots of cells

Use Conditional Formatting. See:


http://www.contextures.com/xlCondFormat01.html
--
Gary's Student


" wrote:

Hi,

I wonder if anyone can help me as i don't know where to start!

I have a column in an excel spreadsheet which is full of numbers in the
format 00:00:00 (HH:MM:SS).
There are alot of fields in this column!!!

What i have just had to do manually is go through and change the fill
colour of the cells if the value is greater than or equal to 00:20:00.
If the value of the cell was above 00:30:00 then the cell must be a
different colour. Less than 00:20:00 and it should be a another colour.
So in total 3 colours.
As the column is down to row number '4950' - you can see that this will
be a very lengthy process!

Is there a way to automate this process? (with a macro?)
If there is can anyone point me in the right direction?

Thanks

Matt!


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 drag to extend a series across lots of cells quickly? sjSQW Excel Discussion (Misc queries) 5 July 25th 06 04:20 PM
Automate unprotecting of blank cells Jim Palmer Excel Discussion (Misc queries) 3 September 13th 05 12:09 AM
To safety merge cells without data destroyed, and smart unmerge! Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:17 AM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM


All times are GMT +1. The time now is 02:53 AM.

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"