Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Change Line color based on 2 different cells

I'm trying to change the line color to red based on data from two
different cells. An example would be if one cell is less than 6 months
of time and training hours needed is greater than 0 then turn the line
red. Conditional formatting won't work because of two different cells?

Thank you! Mitch

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Change Line color based on 2 different cells

You can still use Conditional Formatting. Just use the AND function.

Not sure what your actual data/formulas are, but you should be able to apply
them using the following formula:

=AND($A$1<6,$B$10)

HTH,
Elkar



"lawdoggy" wrote:

I'm trying to change the line color to red based on data from two
different cells. An example would be if one cell is less than 6 months
of time and training hours needed is greater than 0 then turn the line
red. Conditional formatting won't work because of two different cells?

Thank you! Mitch


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Change Line color based on 2 different cells

Thanks for the reply. I didn't specify clearly I want to change the
entire row color based on two different cell values. I can't figure out
how to use conditional formating on based on two different cell data
points? I can use conditional formatting on one cell with many
different conditions but that would accomplish the row color. I think I
might need a little VB code?

Thanks...Mitch

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Change Line color based on 2 different cells

Never mind I figured it out thanks to the first reply. Thank you!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Change Line color based on 2 different cells

You should still be able to accomplish this. Just select your entire row,
then set the Conditional Formatting. Change "Cell Value Is" to "Formula Is".
Then enter the formula (adjust to your needs):

=AND($A$1<6,$B$10)

Set your format. Click OK.

The use of Absolute Cell Referencing ($A$1 instead of A1) will prevent the
formula from incrementing across the entire row, allowing those 2 cells to be
referenced by the entire row.

If this isn't what you're looking for, then post back with more specific
details/example of what you want.

HTH,
Elkar


"lawdoggy" wrote:

Thanks for the reply. I didn't specify clearly I want to change the
entire row color based on two different cell values. I can't figure out
how to use conditional formating on based on two different cell data
points? I can use conditional formatting on one cell with many
different conditions but that would accomplish the row color. I think I
might need a little VB code?

Thanks...Mitch




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
Change line to bar in Line - Column graph Yonke Charts and Charting in Excel 4 January 16th 07 12:42 AM
How do I get a line break when using a formula to combine cells TESA0_4 Excel Worksheet Functions 5 May 13th 06 03:15 PM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
I Need to change reference sheet for all cells on a form Brent E Excel Discussion (Misc queries) 1 February 11th 05 01:36 AM
How do I link two cells as to allow me to change the value in eit. jpvlvt Excel Discussion (Misc queries) 3 January 26th 05 01:28 AM


All times are GMT +1. The time now is 11:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"