Julia, I think exporting to excel takes you a step back. Likely it would be easier to work solely in R and sort the P values like that. I had to do something similar only with a bunch of regressions a while back. I found this post extremely helpful as well as the plyr package
http://www.r-bloggers.com/r-calculating-all-possible-linear-regression-models-for-a-given-set-of-predictors/ Not much help I realize but maybe it will point you in the right path. Sam -- View this message in context: http://n4.nabble.com/Writing-summary-aov-results-to-a-file-which-can-be-opened-in-Excel-tp1749775p1750249.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.