Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Conditional Formatting/VBA

FAO Dav,

Sorry, but none of the suggestions you put forward worked. I thought I would
re-post


I have a spreadsheet containing some information that I need to apply a
couple of conditional formats too, however this may have to be done using VBA
as I think it may be impossible to do this going through the normal
conditional format route.

In cell B2 there is a date (formatted to mmm) and in cells E4 to P4 I have
headed the columns with the months, April to March (again formatted to mmm)
i.e. a financial year. In cells E6 to Q26 is held all the financial
information for each month.

What I am trying to do, is change all the zero values to a gray font.
I also want to apply a yellow fill colour to ALL the values, i.e. zero
upwards, if they are in a column where the heading (E4 to P4) is greater than
the current month (B2). Where the column heading is less that the value in B2
(i.e. where the month has passed), I want no fill colour but I still want the
zero values to have a gray font.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 252
Default Conditional Formatting/VBA

You can do this with conditional formatting and three conditions. Select
E6:Q6 and select Format-Conditional Formatting. Use "Formula Is" for all
three conditions, and use the following formulas.

=(E6=0)*(E$4$B$2)
Format to grey font and yellow background

=(E6=0)*(E$4<=$B$2)
Format to grey font

=(E$4$B$2)
Format to yellow background


"Chris Waller" wrote:

FAO Dav,

Sorry, but none of the suggestions you put forward worked. I thought I would
re-post


I have a spreadsheet containing some information that I need to apply a
couple of conditional formats too, however this may have to be done using VBA
as I think it may be impossible to do this going through the normal
conditional format route.

In cell B2 there is a date (formatted to mmm) and in cells E4 to P4 I have
headed the columns with the months, April to March (again formatted to mmm)
i.e. a financial year. In cells E6 to Q26 is held all the financial
information for each month.

What I am trying to do, is change all the zero values to a gray font.
I also want to apply a yellow fill colour to ALL the values, i.e. zero
upwards, if they are in a column where the heading (E4 to P4) is greater than
the current month (B2). Where the column heading is less that the value in B2
(i.e. where the month has passed), I want no fill colour but I still want the
zero values to have a gray font.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Conditional Formatting/VBA

FAO Sloth,

That was brilliant!

Thanks again for your help, much appreciated.

Chris

"Sloth" wrote:

You can do this with conditional formatting and three conditions. Select
E6:Q6 and select Format-Conditional Formatting. Use "Formula Is" for all
three conditions, and use the following formulas.

=(E6=0)*(E$4$B$2)
Format to grey font and yellow background

=(E6=0)*(E$4<=$B$2)
Format to grey font

=(E$4$B$2)
Format to yellow background


"Chris Waller" wrote:

FAO Dav,

Sorry, but none of the suggestions you put forward worked. I thought I would
re-post


I have a spreadsheet containing some information that I need to apply a
couple of conditional formats too, however this may have to be done using VBA
as I think it may be impossible to do this going through the normal
conditional format route.

In cell B2 there is a date (formatted to mmm) and in cells E4 to P4 I have
headed the columns with the months, April to March (again formatted to mmm)
i.e. a financial year. In cells E6 to Q26 is held all the financial
information for each month.

What I am trying to do, is change all the zero values to a gray font.
I also want to apply a yellow fill colour to ALL the values, i.e. zero
upwards, if they are in a column where the heading (E4 to P4) is greater than
the current month (B2). Where the column heading is less that the value in B2
(i.e. where the month has passed), I want no fill colour but I still want the
zero values to have a gray font.

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
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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