Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to automatically add rows and populate cell content (cell type and formulae) when conditions are met

$
0
0

I am a personal trainer. I want to create a spreadsheet where I can set the number of training slots for a given weekday on a control sheet (Training Slots).

enter image description here

When I set on my annual calendar sheet (Column F on Example), that I am working on a given day, that it automatically creates a number of rows, corresponding to the number of training slots set for that weekday.

For example, if I select Yes to did I work on a Wednesday, it should create two new rows beneath, as I have set that I have 2 training slots on Wednesday. In the same way, it should create 4 slots on a worked Thursday.

enter image description here

Additionally, I would like to be able to set content and/or field type in these created rows. For Column H that would be inserting a tick box, for column I it would be populating it with this formula =if(H7=TRUE,1,0). Fields C, E, F and G of newly created rows should be left blank.

Also, if possible, I would like these rows to be created with a different colour as to clearly indicate that they are subordinate rows of the row above.

Spreadsheet

I have looked at the comments in this post Automatically add rows based on condition of existing rows, but couldn't work back on how to insert this in my scenario.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>