Hi there,
I currently have a problem with a spreadsheet I use at work, each month the spreadsheet is refreshed and it uses Microsoft Query to extract information from a program we use throughout the company. The columns display figures for each month starting from 24months previous to the current month. With this the columns are then coloured coded by quarter, but this is currently done manually and to put it in simple terms Excel doesnt like it!! I think there is too much information and it frequently stops responding.
Ideally I would like it to update the spreadsheet automatically, with columns being formatted based on the top cell which will have a month in. For example,
April, May, June - Columns coloured Blue
July, August, September - Red
October, November, December - Yellow
January, February, March - Green
I would appreciate any ideas on how this could be done, whether I use conditional formatting or anything else.
Thanks in advance,
Kyle Ward.![]()
Last edited by K.Ward; 02-21-2011 at 10:30 AM.
If you're using 2007, you can set the conditional formatting to "Use a formula to determine which cells to format", and "format the values where this formula is true:" to
then select the Fill color to whatever you wish. (Change the $A$1 to whatever your column's first cell is, obviously.)HTML Code:=(OR($A$1="April",$A$1="May",$A$1="June",$A$1="July"))
Change the "Applies to" field to =$A:$A (or whatever column you're in.)
Use multiple rules, changing the months and formats, to cover all your bases.
There's likely a more elegant way, but this is what would work for me.
Last edited by Gunther Maplethorpe; 02-18-2011 at 12:28 PM.
How are the month headers generated?
Are they simple strings, or strings resulting from a date that has been formatted "mmm"?
You might need to consider something on these lines, or equal, if they are date derived
...etc=OR(TEXT(A$1,"mmm")="Apr",TEXT(A$1,"mmm")="May",TEXT(A$1,"mmm")="Jun")
If you need any more information, please feel free to ask.
However, if this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
Also
If you are satisfied by any members response to your problem please consider using the small Star icon botom left of thier post to show your appreciation.
Both work,
Thank you very much guys!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks