Update analysis_to_excel.php

In line 261, '$user->idname' needs to be corrected as '$user->id' to show userid value in a detailed worksheet.