codional formating if two cells match two other cells

tonylpcs@yahoo.co.uk

Active Member
Joined
Dec 19, 2007
Messages
379
hi,

i need a condional format for the following

if both cells e6 and f6 match any other two cells next to each other in any row from e6 to x24 then true,

please can someone help me with this as i can do one cell or any two cell but not any two cells next to each other?

thanks

tony
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Select the whole range E6:X24, starting the selection at E6 so that E6 is the active cell then apply this formula in conditional formatting:
=OR(AND(E6=$E$6,F6=$F$6),AND(D6=$E$6,E6=$F$6))
You can clear the conditional formatting from E6:F6 afterwards if you want.
Excel Workbook
EFGHIJKLMNOPQRSTUVWX
624336315464625223514
743215135112144632645
866625645136646624654
944134146616243526116
1056246321645543534133
1155153261435441112526
1232542116216325655466
1331442624533613431556
1432411343141334315544
1551323614314356215124
1612421164455365456562
1751365624566254611335
1844512514362154661333
1922241352645323643213
2026624622216131316424
2152545356521252133433
2231144363564531321536
2314552253143652331112
2436555523526414466253
Sheet19
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E61. / Formula is =OR(AND(E6=$E$6,F6=$F$6),AND(D6=$E$6,E6=$F$6))Abc
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,473
Members
452,915
Latest member
hannnahheileen

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