Without building it for you, here is the logic:
- Get Excel Data (should be sorted by e-mail prior)
- Create new List %Attachments%
- For each %Row% in %ExcelData%
- Set %ExcelData[%Row%][3]% to %EmailAddress%
- If %ExcelData[%Row%][6]% > -30
- Add Attachment to %Attachments% (I don't see attachments here...if it's the Project Number, then just add %ExcelData[%Row%][1]%
- EndIF
- If %ExcelData[%Row + 1%][3] = %EmailAddress%
- EndIf
- Send Email with %Attachments%
- Clear List %Attachments%
- End #For Each
Ultimately, what this says is, start at row 1, get the email, get the attachment; if the next email is the same, go to that row, add the attachment. If the next row's e-mail is not the same, send the email with the attachments. Clear the attachment list, and start over with the next row/email.
This will work. Best of luck!