Avatar of Andross9
Andross9
 asked on

MS Excel - Text Hover

https://www.experts-exchange.com/questions/26798376/MS-Excel-Text-Hover-resize-hover-box-to-fit-definition-with-maximum-width-of-50-characters.html

Question:

I have a worksheet were column A contains a series of dates.

I also have a public holiday data set, where each of the public holiday dates have a dependant definition
e.g.:
C3 = Friday, 25 December 2009      
D3 = Christmas Day

If a date within the worksheet is the same as a public holiday date in the data set, I want to be able to hover over the date and have a comment box display with the public holiday definition as per the data set. I also want the date in column A to conditionally format (change colour) on the basis it is a public holiday date.

I would also like the comment box to resize itself to ensure a maximum character width of 50 characters is displayed.
 
I have attached a copy of a workbook with an example.

Any help would be greatly appreciated.

Andross
 Public-Holidays-Example.xlsm
Microsoft ApplicationsMicrosoft Excel

Avatar of undefined
Last Comment
Saqib Husain

8/22/2022 - Mon
Rob Henson

The conditional format bit is relatively simple.

Use a VLOOKUP formula, against the date list, in the conditional formatting dialogue to set the condition.

You might have to do a bit back to front:

=IF(NOT(ISERROR(VLOOKUP(Date,List,1,FALSE))))

Date would be the cell reference of the cell containing the conditional formatting and List would be the list of bank holiday dates.

Not sure about getting the comment.

Cheers
Rob H
Rory Archibald

ASKER CERTIFIED SOLUTION
Saqib Husain

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Your help has saved me hundreds of hours of internet surfing.
fblack61