This requires a lot of understanding how family function. Seeing you say you are a beginner, it will be difficult to built this without understanding the basic family parameters. I would recommend you watch this video
https://www.autodesk.com/autodesk-university/class/Revit-Families-Step-Step-Introduction-2016
If you want to get it to function, you need multiple parameters. If you use total length as your driving, then the panel would need to be equal distance. This means the panel need to be nested with instance parameter. Then apply the Overall Length/4.
However if your panel have a fix size and you want it to array, you can apply use type parameter as your size. As for array, it would need to reference from first to second offset. Then the 2nd offset would need to tie to the panel type parameter. When you array the number, it will give you definite panel.
You can also use curtainwall to achieve this as well using fix number. All you need to do is to create curtainwall panel fix to that size. Then you simply load that family into the project and set the vertical grid and choose that panel. Choose the number you want and the curtainwall will split those panel into multiple grids.
Check out my Revit youtube channel - https://www.youtube.com/user/scourdx