in reply to Excel chart for dynamic data
xl_range_formula($sheetname, $row_1, $row_2, $col_1, $col_2) [download]