I need a formula that will ask for the number of switches and then give a configuration....


How many switches? 4



The result should look like this:

interface range GigabitEthernet1/0/1 - 48,GigabitEthernet2/0/1 - 48,GigabitEthernet3/0/1 - 48,GigabitEthernet4/0/1 - 48


this is what I have so far:
=REPT("GigabitEthernet, ()/0/1 - 48,",D1)

I need the area in the parentheses to iterate to the number of switches