Conditional Formatting

Kobi Merrikin

New Member
Joined
Oct 18, 2019
Messages
13
Office Version
  1. 365
Platform
  1. MacOS
Hi Team,

I am creating a calendar view to show room bookings and have been able to pull through the start and end time of the event, I now just want to show the cells in between as highlighted. As you can see below, the Investor Event starts at 8 and finishes at 17:30, I would like the cells in between to be shown as highlighted as well.

The data is pulling through from a table on another tab

Thanks so much for you help in advance!

1720100398558.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If you are running 365, this should do the trick. It will throw an error if there is any double booking. Which is probably the right thing to do. But you can use textjoin to show both overlapping.

MrExcelPlayground23.xlsx
ABCDEFGHIJK
1NameDateStartEndTimeMonday, July 1, 2024Tuesday, July 2, 2024Wednesday, July 3, 2024Thursday, July 4, 2024Friday, July 5, 2024
2Event 17/2/20248:008:308:00 Event 1   
3Event 27/2/202410:0016:008:30     
4Event 37/3/20249:0015:009:00  Event 3  
5Event 47/5/202411:0013:009:30  Event 3  
610:00 Event 2Event 3  
710:30 Event 2Event 3  
811:00 Event 2Event 3 Event 4
911:30 Event 2Event 3 Event 4
1012:00 Event 2Event 3 Event 4
1112:30 Event 2Event 3 Event 4
1213:00 Event 2Event 3  
1313:30 Event 2Event 3  
1414:00 Event 2Event 3  
1514:30 Event 2Event 3  
1615:00 Event 2   
1715:30 Event 2   
1816:00     
1916:30     
2017:00     
2117:30     
2218:00     
2318:30     
2419:00     
2519:30     
2620:00     
Sheet9
Cell Formulas
RangeFormula
H1:K1H1=G1+1
G2:K26G2=IFERROR(FILTER(Table7[[Name]:[Name]],(Table7[[Date]:[Date]]=G$1)*(Table7[[Start]:[Start]]<=$F2)*(Table7[[End]:[End]]>=$F2+0.5/24)),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:K26Expression=G2<>""textNO
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
I would like the cells in between to be shown as highlighted as well.
Is this what you mean?

24 07 06.xlsm
ABCDE
1Date1Date2Date3Date4
2Time1Event1
3Time2
4Time3Event2
5Time4
6Time5
7Time6
8Time7
9Time8
10Time9Event2
11Time10
12Time11
13Time12
14Time13Event1
15Time14
16Time15
17Time16
18Time17
19Time18
20Time19
CF Calendar Events
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:E20Expression=MATCH(LOOKUP("zzz",B$1:B2),B2:B$20,0)textNO
 
Upvote 0
If you are running 365, this should do the trick. It will throw an error if there is any double booking. Which is probably the right thing to do. But you can use textjoin to show both overlapping.

MrExcelPlayground23.xlsx
ABCDEFGHIJK
1NameDateStartEndTimeMonday, July 1, 2024Tuesday, July 2, 2024Wednesday, July 3, 2024Thursday, July 4, 2024Friday, July 5, 2024
2Event 17/2/20248:008:308:00 Event 1   
3Event 27/2/202410:0016:008:30     
4Event 37/3/20249:0015:009:00  Event 3  
5Event 47/5/202411:0013:009:30  Event 3  
610:00 Event 2Event 3  
710:30 Event 2Event 3  
811:00 Event 2Event 3 Event 4
911:30 Event 2Event 3 Event 4
1012:00 Event 2Event 3 Event 4
1112:30 Event 2Event 3 Event 4
1213:00 Event 2Event 3  
1313:30 Event 2Event 3  
1414:00 Event 2Event 3  
1514:30 Event 2Event 3  
1615:00 Event 2   
1715:30 Event 2   
1816:00     
1916:30     
2017:00     
2117:30     
2218:00     
2318:30     
2419:00     
2519:30     
2620:00     
Sheet9
Cell Formulas
RangeFormula
H1:K1H1=G1+1
G2:K26G2=IFERROR(FILTER(Table7[[Name]:[Name]],(Table7[[Date]:[Date]]=G$1)*(Table7[[Start]:[Start]]<=$F2)*(Table7[[End]:[End]]>=$F2+0.5/24)),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G2:K26Expression=G2<>""textNO
Thank you so much for this! This has worked perfectly :)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Thanks for this - I have done so now!
 
Upvote 0

Forum statistics

Threads
1,224,877
Messages
6,181,526
Members
453,053
Latest member
DavidKele

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