VBA to convert cell contents to comments.

sjp1979

New Member
Joined
Oct 16, 2013
Messages
28
Hi All

I have a sheet that counts the number of people that fulfil requirements on another sheet and displays the number. i.e. it counts students who have a target grade of B, who have achieved a C and are in class 10r1.

The sheet containing the data is called 'data' the target is in column D, their achieved grade is in column R and their class number is in column E.

The formula I have used to do this is =COUNTIFS(Data!AC:AC,"=B",Data!R:R,"=C",Data!E:E,"=10r1")

What I would like is for the box with the count in it to also display the names (column C) of the students that have been counted in it's comments when you mouseover - The comment in the cell needs to contain the names of the students who provided a positive result for the count, itself.

I know this is possible as I've seen it done by another school. However, their spreadsheet was locked so i couldn't see the code.

Thanks in advance.

Stephen
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
If there is another way I can do something similar and just bring up a list in the sheet, that would be fine too. If it was in the comments it would look neater but a simple list within the sheet would be fine too.
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,532
Members
449,316
Latest member
sravya

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