Formula that looks at two columns

R

Ralph Smith

I am trying to determine how many times my colors are associated with
the objects --

Colors Objects

Red Square
Red Circle
Red Square
Yellow Oval
Yellow Star
Yellow Star
Blue Star
Blue Square
Blue Square

For instance, I would like to know how many times Red and Square show
up and how many times Red and Circle show up. Is there a forumula
that will take a look at both columns.

Thanks.
 
G

Guest

One way

=SUMPRODUCT(--(A2:A50="Red"),--(B2:B50="Square"))

to get better functionality you can replace the criteria with cell
references where you put the criteria like

=SUMPRODUCT(--(A2:A50=C2),--(B2:B50=D2))


Regards,

Peo sjoblom
 
G

Guest

Great place for a pivot table. Select all the data, including the "Colors"
and "Objects" column headers and use Data>Pivot Table. Just click on the
Finish button and then drag one field into the row area, the other field into
the column area, and either field into the data area. That's all there is to
it
 

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