Okay, I found PART of my problem. $objPHPExcel->getActiveSheet()->setCellValue('A' . $stat_year); $objPHPExcel->getActiveSheet()->setCellValue('B' . $stat_month); I must have mistyped and put period "." instead of comma "," to seperate the cell number from the variable. Fixed that and now I get something...what I get now is one row of data printed out on row 65,536 in Excel (I believe this is the very last row of data allowed by Excel) So, instead of printing out the 128 results I should get form the loop, it only prints out one result on the max row available in Excel. Ideas?