Problem loading multiple units into multiple medivacs

Did you know that you can press shift to queue commands?

You can select all your units and right click the medivacs holding shift, this will make them load into the first and move on to the second one when that one is full without you having to issue more commands manually.