Hi, this is definitely possible, but not with formulas, for this you need macro (VBA code). Basically you will have a button and once pressed you will get the Output sheet, exactly as your sample, based on the data that is currently on Raw data sheet. If you are interested in working with me, please message me, i can code this for you immediately.
Thanks, Milan