LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Format Cell based on two other cells in same row.

Thank you very much. Does exactly what it says on the tin!!!

Thanks a million..

"Trevor Shuttleworth" wrote:

On way:

Conditional Format formula for same string:

=OR(AND(D3="B MAJOR",L3="B MAJOR"),AND(D3="B MINOR",L3="B MINOR"))

I'll leave you to extend to red condition depending on your exact needs

One possibility, if the strings are always as expected:

=OR(AND(D3="B MAJOR",L3="B MINOR"),AND(D3="B MINOR",L3="B MAJOR"))

Regards

Trevor


"Radsan" wrote in message
...
In a decision matrix, I want to change the colour of the cells in column
range I3:I216 based on a comparison between two strings in D3:D216 and
L3:L216. The value in column D and column L can only be either "B MAJOR"
or
"B MINOR".

For example I want I3 to be green if both D3 and L3 contain the same
string
or red if they both contain different strings. These string values are
coming
from If statements and VLookups.

I tried a helper column R where I used if(EXACT(D3,L3)=TRUE,1,0) to
populate
the column with 1's and 0's. But I cannot get I3 to change colour
depending
on R3 values of 1 or a 0 by conditional formatting.

It probably needs programmatic solution, but I am have no idea how to go
about writing VB code. I am at my wits end and would be grateful for any
help.




 
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
How do I format a cell based on conditions in five different cells dallasfinance Excel Discussion (Misc queries) 1 February 19th 09 09:43 PM
Format cell based on a range of other cells Strike Eagle Loader[_2_] Excel Worksheet Functions 3 May 1st 07 07:33 AM
Format colour of cells based on other cell - 34 colours Graham Tritton Excel Programming 2 July 14th 06 03:10 AM
how do i format a cell based on format of a range of cells? Chris Hardick Excel Discussion (Misc queries) 2 April 3rd 06 08:54 AM
I want to format a cell based on an adjacent cells value Cumbo Excel Discussion (Misc queries) 1 December 13th 04 11:52 AM


All times are GMT +1. The time now is 02:13 PM.

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"