Table Driven Pattern Instances

I'm working on a hinge that's in a design table. I need the number of instances to change as the length changes. I think I have what I need in the Excel table for data but I can't get a formula written to divide the number of instances by the length, then if greater than x.xx, add another instance until x.xx is within a given range. I want the hinge barrel to increase/ decrease in instances as the length changes. Is this possible?

Thanks, Kevin

SolidworksConfigurations design Tables