Hi,
If your raw data is in column 1 and you want the bin-center and counts in the same sheet as output, starting at say column 2 onwards, you could use the freqcounts X-Function from script with options such as below:
freqcounts irng:=col(1) min:=0 max:=4 stepby:=increment inc:=1 center:=1 end:=0 count:=1 cumulcount:=0 rd:=col(2);
The output type is ReportData which by default creates a new sheet and puts all output columns in that sheet, but you can override that by specifying a starting column such as col(2) in the command above, and then all output cols will be placed in the active sheet starting at the specified column.
Easwar
OriginLab