I'm in need of some code that will put the values in the cells of Column D into a comment of the associated name in Column B. I do not have room in the worksheet cells to put this info and thought including the information as a comment with the person's name might be a solution.
Column D values will reference a table like that of Columns H and I on another worksheet. Here the Column D formula that I'm using to get the corresponding values for the names in Column B
[TABLE="width: 814"]
<tbody>[TR]
[TD="colspan: 6"]IFNA(INDEX($H$4:$I$11,MATCH(B4,$H$4:$H$11,0),2),"")
does not reference another sheet because it is just and example.
It would be great if the VBA code would activate when any name in Column B is changed, thus causing the comment in that changed cell in Column B to clear and then re-populate with the new values generated in Column D.
This way the order of the names is irrelevant.
Thanks in advance for any help you all can provide.[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 814"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 6"]IFNA(INDEX($H$4:$I$11,MATCH(B4,$H$4:$H$11,0),2),"")[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]↓[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tommy Lee[/TD]
[TD][/TD]
[TD="colspan: 2"]rocker, pam,[/TD]
[TD][/TD]
[TD][/TD]
[TD]John Holmes[/TD]
[TD]happy, sally, disney, jonny[/TD]
[/TR]
[TR]
[TD]Billy Mayes[/TD]
[TD][/TD]
[TD="colspan: 3"]qvc, sale, make money, hawk[/TD]
[TD][/TD]
[TD]Timmy Jones[/TD]
[TD]TJ, golfer, walker[/TD]
[/TR]
[TR]
[TD]John Holmes[/TD]
[TD][/TD]
[TD="colspan: 3"]happy, sally, disney, jonny[/TD]
[TD][/TD]
[TD]Billy Mayes[/TD]
[TD]qvc, sale, make money, hawk[/TD]
[/TR]
[TR]
[TD]Tommy Lee[/TD]
[TD][/TD]
[TD="colspan: 2"]rocker, pam,[/TD]
[TD][/TD]
[TD][/TD]
[TD]George Jones[/TD]
[TD]country, western, guitar[/TD]
[/TR]
[TR]
[TD]Brad Bad[/TD]
[TD][/TD]
[TD="colspan: 2"]bb, bad, arm wrestler[/TD]
[TD][/TD]
[TD][/TD]
[TD]Tommy Lee[/TD]
[TD]rocker, pam,[/TD]
[/TR]
[TR]
[TD]Arnold Swartz[/TD]
[TD][/TD]
[TD="colspan: 3"]get to the chopper, I'll be back[/TD]
[TD][/TD]
[TD]Brad Bad[/TD]
[TD]bb, bad, arm wrestler[/TD]
[/TR]
[TR]
[TD]Timmy Jones[/TD]
[TD][/TD]
[TD="colspan: 2"]TJ, golfer, walker[/TD]
[TD][/TD]
[TD][/TD]
[TD]Arnold Swartz[/TD]
[TD]get to the chopper, I'll be back[/TD]
[/TR]
[TR]
[TD]Danny O'Day[/TD]
[TD][/TD]
[TD="colspan: 2"]Irish, river dancer[/TD]
[TD][/TD]
[TD][/TD]
[TD]Danny O'Day[/TD]
[TD]Irish, river dancer[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 814"]
<tbody>[TR]
[TD="colspan: 6"]IFNA(INDEX($H$4:$I$11,MATCH(B4,$H$4:$H$11,0),2),"")[/TD]
[/TR]
</tbody>[/TABLE]
Column D values will reference a table like that of Columns H and I on another worksheet. Here the Column D formula that I'm using to get the corresponding values for the names in Column B
[TABLE="width: 814"]
<tbody>[TR]
[TD="colspan: 6"]IFNA(INDEX($H$4:$I$11,MATCH(B4,$H$4:$H$11,0),2),"")
does not reference another sheet because it is just and example.
It would be great if the VBA code would activate when any name in Column B is changed, thus causing the comment in that changed cell in Column B to clear and then re-populate with the new values generated in Column D.
This way the order of the names is irrelevant.
Thanks in advance for any help you all can provide.[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 814"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 6"]IFNA(INDEX($H$4:$I$11,MATCH(B4,$H$4:$H$11,0),2),"")[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]↓[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Tommy Lee[/TD]
[TD][/TD]
[TD="colspan: 2"]rocker, pam,[/TD]
[TD][/TD]
[TD][/TD]
[TD]John Holmes[/TD]
[TD]happy, sally, disney, jonny[/TD]
[/TR]
[TR]
[TD]Billy Mayes[/TD]
[TD][/TD]
[TD="colspan: 3"]qvc, sale, make money, hawk[/TD]
[TD][/TD]
[TD]Timmy Jones[/TD]
[TD]TJ, golfer, walker[/TD]
[/TR]
[TR]
[TD]John Holmes[/TD]
[TD][/TD]
[TD="colspan: 3"]happy, sally, disney, jonny[/TD]
[TD][/TD]
[TD]Billy Mayes[/TD]
[TD]qvc, sale, make money, hawk[/TD]
[/TR]
[TR]
[TD]Tommy Lee[/TD]
[TD][/TD]
[TD="colspan: 2"]rocker, pam,[/TD]
[TD][/TD]
[TD][/TD]
[TD]George Jones[/TD]
[TD]country, western, guitar[/TD]
[/TR]
[TR]
[TD]Brad Bad[/TD]
[TD][/TD]
[TD="colspan: 2"]bb, bad, arm wrestler[/TD]
[TD][/TD]
[TD][/TD]
[TD]Tommy Lee[/TD]
[TD]rocker, pam,[/TD]
[/TR]
[TR]
[TD]Arnold Swartz[/TD]
[TD][/TD]
[TD="colspan: 3"]get to the chopper, I'll be back[/TD]
[TD][/TD]
[TD]Brad Bad[/TD]
[TD]bb, bad, arm wrestler[/TD]
[/TR]
[TR]
[TD]Timmy Jones[/TD]
[TD][/TD]
[TD="colspan: 2"]TJ, golfer, walker[/TD]
[TD][/TD]
[TD][/TD]
[TD]Arnold Swartz[/TD]
[TD]get to the chopper, I'll be back[/TD]
[/TR]
[TR]
[TD]Danny O'Day[/TD]
[TD][/TD]
[TD="colspan: 2"]Irish, river dancer[/TD]
[TD][/TD]
[TD][/TD]
[TD]Danny O'Day[/TD]
[TD]Irish, river dancer[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 814"]
<tbody>[TR]
[TD="colspan: 6"]IFNA(INDEX($H$4:$I$11,MATCH(B4,$H$4:$H$11,0),2),"")[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: