conditional formatting - comparing 2 sets of cells

amou7

New Member
Joined
Mar 27, 2013
Messages
22
Hello,

i am working with an excel sheet with aviation schedules - and I'd like to use conditional formatting to tell me if on any given date certain date (column e) there will be a plane landing in the same city (column I). So if I have two cells in the same row that match two cells in a different row (same date and same city) the city cell would turn red for example.

I'm pretty sure with an =if(and( function I could get it, but i can't seem to get it right!

thanks for your help in advance!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi Amou,

Try this:

In Cell C1, go to Conditional Formatting and in the CF format bar enter: =$A$1=$B$1. I then used a colour fill e.g. solid red.

HTH

Mel
 
Upvote 0
Hi Amou,

Try this:

In Cell C1, go to Conditional Formatting and in the CF format bar enter: =$A$1=$B$1. I then used a colour fill e.g. solid red.

HTH

Mel


Mel, This only compares one cell to another, I need to know if $e23 is the same date as any other $e cell, and if so, does $I23 have the same city as the given $I cell in the same row....
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,117
Members
449,993
Latest member
Sphere2215

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