What do you mean "to be used on a function"?

You already said:
Quote:

It reads excel data and outputs correctly when I use the following output query:
? ""$range[$counter,0]
? ""$range[$counter,1]
? ""$range[$counter,2]
? ""$range[$counter,3]




So then what is your problem?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.