PC Review


Reply
Thread Tools Rate Thread

Conditional Formatting Not Working Out

 
 
=?Utf-8?B?QmlnIFJlZA==?=
Guest
Posts: n/a
 
      13th Jun 2007
In a spreadsheet macro I'm building, I need to test the contents of one cell
for a value and if the value is true, set a background color for the active
cell based on whether its value is equal to or greater than a calculated
value derived from a value in another cell. I can't get this done, so far,
with using Conditional Formatting. Here is a visual of what I'm trying to
accomplish.

A B C D
1Wks in Mo. 4.2 4.2
2Name Type June July
3Fred INT 124 133
4Kay EXT 155 170

In this example, if Fred has a type of "INT" in B3 then in cell D3 I want to
first take the value of D1 x 30, which would equal 126. If Fred has a value
in D3 of greater than or equal to 126, then I want to change the background
color to Red.

I have 13 cells on each row that I need to do this type of calculation for.
I there is a per cell formula that I could use with Conditional Formatting,
that would be great. If not, is there a way to do this with VBA? (I'm sure
there is, but I don't have the bean for figuring it out!) I would really
appreciate some help with this one.
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      13th Jun 2007
=AND($B3="INT",$D3>=$D$1*30)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Big Red" <(E-Mail Removed)> wrote in message
news:BB6E1652-B9A5-4743-B7B7-(E-Mail Removed)...
> In a spreadsheet macro I'm building, I need to test the contents of one
> cell
> for a value and if the value is true, set a background color for the
> active
> cell based on whether its value is equal to or greater than a calculated
> value derived from a value in another cell. I can't get this done, so far,
> with using Conditional Formatting. Here is a visual of what I'm trying to
> accomplish.
>
> A B C D
> 1Wks in Mo. 4.2 4.2
> 2Name Type June July
> 3Fred INT 124 133
> 4Kay EXT 155 170
>
> In this example, if Fred has a type of "INT" in B3 then in cell D3 I want
> to
> first take the value of D1 x 30, which would equal 126. If Fred has a
> value
> in D3 of greater than or equal to 126, then I want to change the
> background
> color to Red.
>
> I have 13 cells on each row that I need to do this type of calculation
> for.
> I there is a per cell formula that I could use with Conditional
> Formatting,
> that would be great. If not, is there a way to do this with VBA? (I'm sure
> there is, but I don't have the bean for figuring it out!) I would really
> appreciate some help with this one.



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      13th Jun 2007
formula is
=$d$3>126
format as desired

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Big Red" <(E-Mail Removed)> wrote in message
news:BB6E1652-B9A5-4743-B7B7-(E-Mail Removed)...
> In a spreadsheet macro I'm building, I need to test the contents of one
> cell
> for a value and if the value is true, set a background color for the
> active
> cell based on whether its value is equal to or greater than a calculated
> value derived from a value in another cell. I can't get this done, so far,
> with using Conditional Formatting. Here is a visual of what I'm trying to
> accomplish.
>
> A B C D
> 1Wks in Mo. 4.2 4.2
> 2Name Type June July
> 3Fred INT 124 133
> 4Kay EXT 155 170
>
> In this example, if Fred has a type of "INT" in B3 then in cell D3 I want
> to
> first take the value of D1 x 30, which would equal 126. If Fred has a
> value
> in D3 of greater than or equal to 126, then I want to change the
> background
> color to Red.
>
> I have 13 cells on each row that I need to do this type of calculation
> for.
> I there is a per cell formula that I could use with Conditional
> Formatting,
> that would be great. If not, is there a way to do this with VBA? (I'm sure
> there is, but I don't have the bean for figuring it out!) I would really
> appreciate some help with this one.


 
Reply With Quote
 
=?Utf-8?B?QmlnIFJlZA==?=
Guest
Posts: n/a
 
      15th Jun 2007
Thank you, Bob, this worked perfectly!

"Big Red" wrote:

> In a spreadsheet macro I'm building, I need to test the contents of one cell
> for a value and if the value is true, set a background color for the active
> cell based on whether its value is equal to or greater than a calculated
> value derived from a value in another cell. I can't get this done, so far,
> with using Conditional Formatting. Here is a visual of what I'm trying to
> accomplish.
>
> A B C D
> 1Wks in Mo. 4.2 4.2
> 2Name Type June July
> 3Fred INT 124 133
> 4Kay EXT 155 170
>
> In this example, if Fred has a type of "INT" in B3 then in cell D3 I want to
> first take the value of D1 x 30, which would equal 126. If Fred has a value
> in D3 of greater than or equal to 126, then I want to change the background
> color to Red.
>
> I have 13 cells on each row that I need to do this type of calculation for.
> I there is a per cell formula that I could use with Conditional Formatting,
> that would be great. If not, is there a way to do this with VBA? (I'm sure
> there is, but I don't have the bean for figuring it out!) I would really
> appreciate some help with this one.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting not quite working right Repent34 Microsoft Access Forms 1 12th May 2010 12:47 AM
Conditional formatting not quite working Repent34 Microsoft Access Forms 1 11th May 2010 11:53 PM
Conditional Formatting - not working Maze Microsoft Excel Misc 0 10th Feb 2010 06:22 PM
Conditional Formatting ROW not working Rod Microsoft Excel Misc 6 5th Oct 2008 09:23 PM
Conditional formatting not working Les Microsoft Access 0 29th Jun 2005 12:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:51 PM.