Is there a way to format a matrix before writing it to an Excel file using putexcel? For example, suppose I want all the cells of a matrix to be in format %9.2fc. I know you can use format to alter how a matrix is displayed when using matlist, but I can't tell if it is possible to format the matrix itself.
I ask because I am trying to write a matrix of summary stats to Excel, pre-formatted, and some of the numbers have commas in them. If I format the summary stats as local macros using the display extended macro function, and then put the local macros into a matrix, only the digits before the comma show up in the matrix. If I could format the matrix itself, this would solve the problem.
↧
Re: Export tables to Excel
↧