Actually, you don't even need to convert it to a list and back to an array, Just do this:
#arrayavg(myQuery['myColumn'])# ~Brad -----Original Message----- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Friday, April 18, 2008 2:46 PM To: CF-Talk Subject: Re: output column average using coldfusion If they're simple numbers and you're feeling lazy, #arrayAverage(listToArray(valueList(myQuery.myColumn)))# will do the deed, though I don't know about the efficiency. You can just roll up a total as you loop through the rows and then divide by row count at the end. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303776 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

