Hi Anita - if this is in Excel, another way could be that you use the # in a cell you mentioned.
Based on that, you can use a counter column and use formulas to determine whether a "D" should be displayed in in the looping ID field. My counter is in column S and my # of values is in F2, and the D rows start in row 3 for the below example:
Counter:=IF(ISBLANK(S2),1,IF(S2<VALUE($F$2),S2+1,""))
- if the row above is blank, set to 1 - that means I am the first row - possibly the Header row
- if the row above is less than my counter in F2, increment by 1, otherwise set to blank
Loop ID:=IF(S3 <= VALUE($F$2),"D","")
so if my counter is less than the # of rows in F2, show a "D", otherwise set it to blank
I'm sure someone smarter than me in Excel could find another way, but this works. I just used it to read out bom components based on a # I read out of SAP.
Cheers,
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle North America
------------------------------