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.

enter image description here

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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -