--
You received this message because you are subscribed to the Google Groups "FormEmailer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to formemailer+unsubscribe@googlegroups.com.
To post to this group, send email to forme...@googlegroups.com.
Visit this group at https://groups.google.com/group/formemailer.
For more options, visit https://groups.google.com/d/optout.
There's various ways you could aggregate your data, I like to use ArrayFormulas and IFs, so on Summary!B2 you'd have:Now, on column B we'll need all rows aggregated. I'll stick to plain text for simplicity, if you want HTML that's an improvement you can do later.=Unique(Raw!A2:A)I think the easiest route is to change the layout of your data, not the script.Create another tab, let's call it it "Summary", while this one I'll name "Raw".
On summary you want one line per user (to have one email per user). So, on Summary!A2 you write:=ArrayFormula(concatenate(if(Raw!A$2:A=A2, Raw!B$2:D & if(column(Raw!B$2:D)=column(D$1),char(10),", "), "")))Then copy this down on Summary column B for all rows that have user on column A.It is possible to turn this formula to automatically expand down to all users, but it'd become too complex and it's beyond the point here.Now put some headers on Summary A1 and B1, e.g. "user" and "report", and have FormEmailer read from this sheet instead of Raw.Remember to uncheck the "html" box or change this formula to return html instead.Regards,
Henrique G. Abreu
To unsubscribe from this group and stop receiving emails from it, send an email to formemailer...@googlegroups.com.
Team, any help or suggestions here??
On Sunday, 25 March 2018 19:22:25 UTC+5:30, sravan kumar wrote:
Hi Henrique,Thanks for quick replyI have already created the summary sheet, and have been sending the single row to the respective user.But the current requirement is to send the mail in detail that's where i got stuck. Request you to help in this regard, to fulfill the mentioned requirement.Thanks in advance
On Sunday, 25 March 2018 19:09:30 UTC+5:30, Henrique Abreu wrote:
There's various ways you could aggregate your data, I like to use ArrayFormulas and IFs, so on Summary!B2 you'd have:Now, on column B we'll need all rows aggregated. I'll stick to plain text for simplicity, if you want HTML that's an improvement you can do later.=Unique(Raw!A2:A)I think the easiest route is to change the layout of your data, not the script.Create another tab, let's call it it "Summary", while this one I'll name "Raw".
On summary you want one line per user (to have one email per user). So, on Summary!A2 you write:=ArrayFormula(concatenate(if(Raw!A$2:A=A2, Raw!B$2:D & if(column(Raw!B$2:D)=column(D$1),char(10),", "), "")))Then copy this down on Summary column B for all rows that have user on column A.It is possible to turn this formula to automatically expand down to all users, but it'd become too complex and it's beyond the point here.Now put some headers on Summary A1 and B1, e.g. "user" and "report", and have FormEmailer read from this sheet instead of Raw.Remember to uncheck the "html" box or change this formula to return html instead.Regards,
Henrique G. Abreu
To unsubscribe from this group and stop receiving emails from it, send an email to formemailer+unsubscribe@googlegroups.com.
What is your issue?Henrique G. Abreu
Hi Henrique,I have a sheet with 12 columns to send on the mail.but data consists of multiple rows of data related to same user, when i use '*' to send all the rows as mails each row has been sent as a separate mail. instead i'm looking for, a single email triggered for the respective user with all the rows in the sheet.
is there any way to make the changes in the code
On Tuesday, 27 March 2018 01:12:17 UTC+5:30, Henrique Abreu wrote:
What is your issue?Henrique G. Abreu
To unsubscribe from this group and stop receiving emails from it, send an email to formemailer+unsubscribe@googlegroups.com.