Pattern Questions

Hi, I'm new to the whole forum thing. But, I have a question about the pattern features in solidworks. I have a sketch that kind of looks similar to a Z and I need to pattern a body across the sketch. (Not that hard). The hard part is having the pattern stay at an equal distance the whole time while controlling how many of them and the length of the distance using an excel sheet, that way I can generate more or less if the sketch that looks similar to a z gets longer on one side compared to the other. If this can be done please tell me how I've struggled trying three different ways which none of them worked. If it isn't possible thanks for trying to help anyways.

Message was edited by: Tyler Reed. I added the file. I'm trying to get the quantity and distance of the pattern to change when the lengths do. The distances need to be the same.

SolidworksParts And Features