excel - count cell with color -
i want count number of cell filled specific color.
for ex. few cell red, few green few yellow.
now want count total red/green/yellow.
is there idea how apply on merged cell also.
a prompt response appreciated.
regards.
follow instructions on link below mentioned change below link.
https://support.microsoft.com/en-us/kb/2815384
change: change script given in link following, script microsoft uses color index may count other shades of color.
function countcolor(range_data range, criteria range) long dim datax range dim xcolor long xcolor = criteria.interior.color each datax in range_data if datax.interior.color = xcolor countcolor = countcolor + 1 end if next datax end function
Comments
Post a Comment