Code:
[root@TEST ~]# awk -F"," '{for (i=2;i<=NF ; ++i) { if($i !~ /N\/A/) {sum[i] += $i;}} if (i > max) max=i }
END { s=""; for (i=2; i<=max; ++i) { printf "%s%s", s, sum[i]; s=",";} printf "\n" }' format.csv
183,234,29,31,0,0,0,0,25,127,6,21,285,49,0,0,0,0,217,2,27,0,968,332,0,0,
[root@TEST ~]# cat format.csv
20100803,N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, ,
20100804, 183, 234, 29, 31, 0, 0, 0, 0, 25, 127, 6, 21, 285, 49, 0, 0, 0, 0, 217, 2, 27, 0, 968, 332,
20100802,N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, ,
20100803,N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, N/A, ,