I tried the suggested formula but couldn't get it to work with multiple mats of different ilevels. It was 3am so I could have had my spreadsheet-fu messed up but tried several ways.

Why do websites disappear as soon as you really need to use them? XD