Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to summarise column in bottom row

We have a Google Sheets sheet where we track workouts. The first column is the exercise name, followed by a column for each workout day:

A               B       
Bob         01/01/2024
_CORE      
crunches    BW / 5 3 80s

_METABOLIC
running     M / 6 6m
walking
--------------------------
SUMMARY    01/01/2024
           _CORE
           crunches BW / 5 3 80s
           _METABOLIC
           running M / 6 6m

We’re trying to make a summary of all exercises done in the bottom row. In our current attempt we succeeded but we’re struggling to get the summary in one cell, without the blank rows.

Here is a test sheet with an example.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thank you for your help.

>Solution :

Here’s a generalized approach which you may adapt accordingly:

=reduce(C1,A3:A20,lambda(a,c,textjoin(char(10),1,a,if(left(c)="-",regexreplace(c,"^- ",),let(Σ,index(C:C,row(c)),if(Σ="",,"- "&c&" "&Σ))))))

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading