J
Jeff Armstrong
I am trying to use the countif function to do some simple
logical addition. My problem is I need to count the
number of rows based on two different criteria's. For
example, column A has the name of a device. Column G has
the name of different components for a given device. I
need to add the number of rows based on the device and a
particular component for that device. I believe I need to
add the AND statement in my formula, but I can't seem to
get the syntax right. So far my formula looks like this:
=COUNTIF($G$2:$G$217,G2)
This counts all the rows for all devices for the component
in cell G2. Now all I need is for it to only count for a
particular device that I choose in column A. Can someone
please show me how to correctly add an AND clause in a
countif function.
Thanks,
Jeff
logical addition. My problem is I need to count the
number of rows based on two different criteria's. For
example, column A has the name of a device. Column G has
the name of different components for a given device. I
need to add the number of rows based on the device and a
particular component for that device. I believe I need to
add the AND statement in my formula, but I can't seem to
get the syntax right. So far my formula looks like this:
=COUNTIF($G$2:$G$217,G2)
This counts all the rows for all devices for the component
in cell G2. Now all I need is for it to only count for a
particular device that I choose in column A. Can someone
please show me how to correctly add an AND clause in a
countif function.
Thanks,
Jeff