Output dynare results into excel

On looping, see [Loop over parameters)
The easiest thing is to read out the eigenvalues from oo_.dr.eigval. You can count them yourself using Matlab code. Regarding writing the final matrix to Excel, just use the xlswrite-command of Matlab.