Conditional Formatting…

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
Can anyone sort this one out for me please…
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
My area of interest is H18:I25 however, I’ve drawn three tables to show how I want H18:I25 to look when I18 = “W” or “D” or “L”…
<o:p> </o:p>
The values in F20:F25 will never change so I can use those to start me off… To get the CF for “6 Points Games” I could use =AND($I$18="W",$F$20=6) but what is the easiest way to build my formula please so that it works for all my conditions?

Excel Workbook
FGHIJKLMNO
18Away ResultWAway ResultDAway ResultL
19
2066 Point Games546 Point Games546 Point Games54
2144 Point Games644 Point Games644 Point Games64
2233 Point Games883 Point Games883 Point Games88
2322 Point Games322 Point Games322 Point Games32
2411 Point Games631 Point Games631 Point Games63
2500 Point Games540 Point Games540 Point Games54
26
Sheet1
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try:

=AND($I$18="W",OR($F20=6,$F20=4,$F20=3))

=AND($I$18="D",OR($F20=4,$F20=2,$F20=1))

=AND($I$18="L",OR($F20=3,$F20=1,$F20=0))
 
Upvote 0
Try the following CF formula:

Code:
=OR(AND(I$18="W",OR(F20=6,F20=4,F20=3)),AND(I$18="D",OR(F20=4,F20=2,F20=1)),AND(I$18="L",OR(F20=3,F20=1,F20=0)))
Matty
 
Upvote 0
As far as I can see, the order of things in your table should never change, so you will always highlight the same rows based on W / L / D result.

The easiest way is probably to use a simple formula specific to each row of the table.

<TABLE style="WIDTH: 182pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=242><COLGROUP><COL style="WIDTH: 182pt; mso-width-source: userset; mso-width-alt: 4425" width=242><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 182pt; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=20 width=242>=$I$18="W"

</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=20>=OR($I$18="W",$I$18="D")</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=20>=OR($I$18="W",$I$18="L")</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=20>=$I$18="D"</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=20>=OR($I$18="D",$I$18="L")</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; HEIGHT: 15pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=20>=$I$18="L"</TD></TR></TBODY></TABLE>
 
Upvote 0
Obviously Andrew and Matty are more awake than me, I had things in the wrong order when I was trying the method they suggested and couldn't get it to work.

They both missed something simple though ;)

=OR(AND(I$18="W",F20 > =3),AND(I$18="D",OR(F20=4,F20=2,F20=1)),AND(I$18="L",OR(F20=3,F20 < =1)))
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top