Count a Match set of values between cells
On Wed, 17 Dec 2008 14:00:05 -0800, John M. <John
wrote:
I want to produce a page within my workbook for results from my work page.
On my work page and have two columns F and G which down the page will have an
array of entries in each. I want to count the number of occurances where
something in column F and something in column G are equal to two different
values. This is my example.
F G
TYPE GLAZING
5 S SG-3
6 C
7 S SG-3
8 C
9 S SG-3
For my results I want to know how many times that "S" and "SG-3" occur side
by side in the same row as shown above. Can someone please enlighten me how
to accomplish this task?
Thank you,
John M.
Try this formula:
=SUMPRODUCT((F5:F9="S")*(G5:G9="SG-3"))
Change the 5 and 9 on both places to cover the rows of data that you
have.
Hope this helps / Lars-Åke
|