How to automatically calculate formulas from new form submission data?

0

I am trying to count the number of dates submitted from an entry provided via form. I have figured out the formulas to do that. The problem is that every time a new form entry gets submitted a new row gets created and I have no way besides manually dragging down each time the formulas to include the newly arrived entry.

Is there any way to do this automatically? I have read out there that you can do this with an arrayformula with a range of the whole spreadsheet, but I haven't been able to make that work, since each cell would have to count the dates on their own row (and this range would change in each cell)

Here's the sample sheet https://docs.google.com/spreadsheets/d/1WkaIq5cNpyqvqJ6UdUQHd4jsaPlDDl9rocKZRses3DA/edit?usp=sharing

My question: How can I do step 1 automatically every time a form entry gets submitted? Is there any way of doing this just with formulas (if so, how)?

PS: I have also tried copying the form responses to a different sheet and calculate from there, but every time a new row gets created the formulas adapt to point at a row below the new one created. E.g. if the formula points to B6 and the new row gets created in row 6, the formula suddenly points to B7.

jlo

Posted 2018-10-08T10:52:38.653

Reputation: 123

Answers

1

I found two ways to make it work:

First:

=arrayformula(MMULT(N(E1:J42<>""), transpose(column(E1:J1)^0)))

And second (and much more convoluted version)

=arrayformula(if(B3:B<>"";NOT(ISBLANK(E3:E))+NOT(ISBLANK(F3:F))+NOT(ISBLANK(G3:G))+NOT(ISBLANK(H3:H))+NOT(ISBLANK(I3:I))+NOT(ISBLANK(J3:J));))

Took some inspiration from this answer:

https://webapps.stackexchange.com/questions/113895/how-to-use-average-inside-arrayformula-in-google-sheets

jlo

Posted 2018-10-08T10:52:38.653

Reputation: 123

0

Try to put in H3 :

=if(A3=ʺʺ,ʺʺ,counta(B3:G3))

then drag all the way downwards... please share if it works (or not..). ( :

p._phidot_

Posted 2018-10-08T10:52:38.653

Reputation: 948

That would work, but it would require dragging down formulas every time a new form entry gets submitted (since it creates a empty row that does not have the dragged down formula). – jlo – 2018-10-13T11:57:55.787

ok.. thanks for the info.. really appreciate it. ( : – p._phidot_ – 2018-10-13T15:42:11.527