Highlight cell if text matches in range of cells, but only if other cells are blank

SaraWitch

Active Member
Joined
Sep 29, 2015
Messages
378
Office Version
  1. 365
Platform
  1. Windows
Hello peeps,

I have a range of cells that contain addresses with start and end dates. I want to highlight a cell if a new address is entered which is already 'active' elsewhere on the sheet; i.e., address is elsewhere and hasn't got an end date. I'm tying myself up in knots a bit!
¦ MrExcel Queries.xlsm
ABCDEFGHIJKLMNOPQRSTUVWXY
1Address 1Should beLocationDate fromDate toAddress 2LocationDate fromDate toAddress 3LocationDate fromDate toAddress 4LocationDate fromDate toAddress 5LocationDate fromDate toAddress 6LocationDate fromDate to
2Gnome Cave, High Cloud East Sun25/08/202207/08/2022Sky Apartments, Stormville East Sun08/08/202205/01/2022Low Heaven, Angel Cove East Sun06/01/202209/10/2023Ocean Whirlpool, Seagate East Sun10/10/202310/11/2023Valley Deep, Grasslands East Sun11/11/202301/01/2024Forest Mound, Woodland 02/01/202403/01/2024
3Gnome Cave, High Cloud East Sun25/08/202207/08/2022Sky Apartments, Stormville East Sun08/08/202205/01/2022Low Heaven, Angel Cove East Sun06/01/202209/10/2023Ocean Whirlpool, Seagate East Sun10/10/202310/11/2023Valley Deep, Grasslands East Sun11/11/2023
4Gnome Cave, High Cloud Gnome Cave, High Cloud East Sun25/08/2022Sky Apartments, Stormville East Sun08/08/202205/01/2022Low Heaven, Angel Cove East Sun06/01/2022Ocean Whirlpool, Seagate East Sun10/10/202310/11/2023East Sun
5Gnome Cave, High Cloud Gnome Cave, High Cloud
6Sky Apartments, StormvilleSky Apartments, Stormville
7Low Heaven, Angel Cove Low Heaven, Angel Cove
8Ocean Whirlpool, Seagate Ocean Whirlpool, Seagate
9Valley Deep, Grasslands Valley Deep, Grasslands
10Forest Mound, Woodland Forest Mound, Woodland
CF Active Same
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B9Expression=AND(ISNUMBER(MATCH(B9,B9:B17,0)),ISBLANK(F9:F17))textNO
B7Expression=AND(ISNUMBER(MATCH(B7,B7:B15,0)),ISBLANK(F7:F15))textNO
B4Expression=AND(ISNUMBER(MATCH(B4,B4:B12,0)),ISBLANK(F4:F12))textNO
B5,A2:A10Expression=AND(ISNUMBER(MATCH(A2,A2:A10,0)),ISBLANK(E2:E10))textNO
V2:V10Expression=AND(ISNUMBER(MATCH(V2,V2:V10,0)),ISBLANK(Y2:Y10))textNO
F2:F10,J2:J10,N2:N10,R2:R10Expression=AND(ISNUMBER(MATCH(F2,F2:F10,0)),ISBLANK(I2:I10))textNO

Any help would be appreciated :)
 
Last edited:
Sorry SaraWitch I played with it for a bit but, it's multiple(s) of CF's.
I got it semi working with code using a dictionary.
Not sure I'd even pursue that approach as it's clunky.
I'm hoping for some brilliance from the board to help your out. :(
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,224,817
Messages
6,181,144
Members
453,021
Latest member
Justyna P

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