send separate email each time a change is found in a range of cells

timlh42

Board Regular
Joined
Sep 27, 2017
Messages
76
I have employee names and accumulated points in column L The points are in the row directly below the name. I have a macro that will display the name in column M and the point total in column N once the value hits 2 or 3 or 5.

I would like to automatically generate a separate email every time a cell in column N reaches one of those numbers.

However, I don't want to resend an email that was already sent.

In other words..... if Sally, listed in column M row 3 has reached 2 points, listed in row 3 column N then an email gets sent. Later on, Jack, listed in column M row 7 reaches 2 points, listed in row 7 column N then an email gets sent about Jack.

I don't want another sent about Sally. However, If Sally then later reaches 3 points, I want another email sent about Sally but I don't want another one sent for Jack.

Here is a sample of the spreadsheet.

[TABLE="width: 101"]
<colgroup><col width="80" style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;"> <col width="32" style="width: 24pt; mso-width-source: userset; mso-width-alt: 1170;"> <col width="22" style="width: 17pt; mso-width-source: userset; mso-width-alt: 804;"> <tbody>[TR]
[TD="class: xl66, width: 80, bgcolor: transparent"] L [/TD]
[TD="class: xl66, width: 32, bgcolor: transparent"] M [/TD]
[TD="class: xl66, width: 22, bgcolor: transparent"] N[/TD]
[/TR]
[TR]
[TD="class: xl68, bgcolor: transparent"]Total Points[/TD]
[TD="class: xl69, bgcolor: transparent"] [/TD]
[TD="class: xl68, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]Sally[/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]2.0[/TD]
[TD="class: xl65, bgcolor: transparent"]Sally[/TD]
[TD="class: xl67, bgcolor: transparent"]2.0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]Dave [/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]0.0[/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]Mike [/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]3.0[/TD]
[TD="class: xl65, bgcolor: transparent"]Jack [/TD]
[TD="class: xl67, bgcolor: transparent"]3.0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]Larry [/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]0.0[/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]Ben [/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]0.0[/TD]
[TD="class: xl65, bgcolor: transparent"]Ben [/TD]
[TD="class: xl67, bgcolor: transparent"]3.0[/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]Ron [/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
[TR]
[TD="class: xl67, bgcolor: transparent"]0.0[/TD]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl67, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]




I would be extremely grateful for any suggestions.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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