Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ForSale
 
Posts: n/a
Default Conditional Formatting


Every column between C and AA will have either "y" or "n" in it. One
the odd columns starting with C, I need no conditional formatting. In
the even columns starting with D, I need a conditional format that will
turn the cell red if the cell to the left is "y" and this one is "n".
For example:
C D E F
y y n n
y n y y
n n y n

I need to be alerted to D3 and F4.

Thanks.


--
ForSale
------------------------------------------------------------------------
ForSale's Profile: http://www.excelforum.com/member.php...o&userid=11896
View this thread: http://www.excelforum.com/showthread...hreadid=483695

  #2   Report Post  
Rowan Drummond
 
Posts: n/a
Default Conditional Formatting

Select columns D to AA so that D1 is the activecell (white and D1
appears in the formula bar).
FormatConditional Formatting. Formula is:
=IF(AND(MOD(COLUMN(),2)=0,C1="y",D1="n"),TRUE,FALS E)
Set the formatting required.

Hope this helps
Rowan

ForSale wrote:
Every column between C and AA will have either "y" or "n" in it. One
the odd columns starting with C, I need no conditional formatting. In
the even columns starting with D, I need a conditional format that will
turn the cell red if the cell to the left is "y" and this one is "n".
For example:
C D E F
y y n n
y n y y
n n y n

I need to be alerted to D3 and F4.

Thanks.


  #3   Report Post  
Rowan Drummond
 
Posts: n/a
Default Conditional Formatting

Revised formula for the conditional formatting:
=AND(MOD(COLUMN(),2)=0,C1="y",D1="n")

Regards
Rowan

ForSale wrote:
Every column between C and AA will have either "y" or "n" in it. One
the odd columns starting with C, I need no conditional formatting. In
the even columns starting with D, I need a conditional format that will
turn the cell red if the cell to the left is "y" and this one is "n".
For example:
C D E F
y y n n
y n y y
n n y n

I need to be alerted to D3 and F4.

Thanks.


  #4   Report Post  
ForSale
 
Posts: n/a
Default Conditional Formatting


Thanks,
This is close, but it is highlighting a row down. When I put "y" in c3
and "n" in d3, d4 turns red. I'm sure there is a simple modification to
that formula, but I'm no good with formulas. Thanks again.


--
ForSale
------------------------------------------------------------------------
ForSale's Profile: http://www.excelforum.com/member.php...o&userid=11896
View this thread: http://www.excelforum.com/showthread...hreadid=483695

  #5   Report Post  
Rowan Drummond
 
Posts: n/a
Default Conditional Formatting

It sounds like D1 was not the activecell when you entered the
conditional formatting. Select a single cell eg D3 and go into
conditional formating. If you are in D3 the formula should read:
=AND(MOD(COLUMN(),2)=0,C3="y",D3="n")
My guess is yours reads:
=AND(MOD(COLUMN(),2)=0,C2="y",D2="n")

To correct this select columns D to AA again (includig Row1) and make
sure that D1 is the activecell. FomatConditional
FormattingDeleteCondition1Ok.
Then reapply the conditional formatting using the formula:
=AND(MOD(COLUMN(),2)=0,C1="y",D1="n")

Hope this helps
Rowan


ForSale wrote:
Thanks,
This is close, but it is highlighting a row down. When I put "y" in c3
and "n" in d3, d4 turns red. I'm sure there is a simple modification to
that formula, but I'm no good with formulas. Thanks again.




  #6   Report Post  
ForSale
 
Posts: n/a
Default Conditional Formatting


Thanks. Keep up the good work.


--
ForSale
------------------------------------------------------------------------
ForSale's Profile: http://www.excelforum.com/member.php...o&userid=11896
View this thread: http://www.excelforum.com/showthread...hreadid=483695

  #7   Report Post  
Rowan Drummond
 
Posts: n/a
Default Conditional Formatting

You're welcome.

ForSale wrote:
Thanks. Keep up the good work.


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 Error ddate Excel Worksheet Functions 0 May 5th 05 09:00 PM
difficulty with conditional formatting Deb Excel Discussion (Misc queries) 0 March 23rd 05 06:13 PM
conditional formatting question Deb Excel Discussion (Misc queries) 0 March 23rd 05 02:07 AM
Determine cells that drive conditional formatting? Nicolle K. Excel Discussion (Misc queries) 2 January 7th 05 01:08 AM
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 12:09 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"