condition for line color

C

cmar

I want to create an array formula but need help for a condition that refers
to the cell's color.
My formula would be like this:

{=SUM(IF(condition,VTC,0))}

where VTC is the named range =Consignt!$F:$F

I have colored many lines in the worksheet with a background color of
yellow, blue or pink. I want my "condition" to be that the cell has no
background color, e.g., is white.

How would I express that condition?

Thanks, CMA
 
D

Don Guillett

to count for yellow. For None use 0 instead of 6
=SUMPRODUCT(--(ColorIndex(A1:A21)=6))
to sum b based on a
=SUMPRODUCT(--(ColorIndex(A1:A21)=6),b1:b21)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top