I have a spreadsheet (imagine that) that in one column, I have a list of
names., for example, D10 = John, D11= Bob, D12= Bob, D13=Frank, D14 =
John etc, etc, etc,
Then in H10= Mary, H11=Mary, H12 = Sue, H13=Mary, etc, etc, etc
Now in cell B5, I want to know teh number of time John showed up in Column D
and in B6, the number of time Bob showed up etc, etc.
In E5, I need teh same thing, but for teh names that was in column H.The names change, so hard coding for teh names wont work. Also, if it
would be possible to have it so the total gets added up as they are typed in
without having to run a macro after teh fact would be awesome.Thanks in advance
You could use the COUNTIF function for that. Put the following formula in
B5. Of course you will need the whole range in the formula. (AS in D$10 to
the end of the list.) Then copy the formula down column B and then change
the names in the formula for the ones you have copied down.
=COUNTIF(D$10$15,quot;Johnquot;)quot;Johnfliquot; wrote:
gt; I have a spreadsheet (imagine that) that in one column, I have a list of
gt; names., for example, D10 = John, D11= Bob, D12= Bob, D13=Frank, D14 =
gt; John etc, etc, etc,
gt;
gt; Then in H10= Mary, H11=Mary, H12 = Sue, H13=Mary, etc, etc, etc
gt;
gt; Now in cell B5, I want to know teh number of time John showed up in Column D
gt; and in B6, the number of time Bob showed up etc, etc.
gt; In E5, I need teh same thing, but for teh names that was in column H.
gt;
gt;
gt; The names change, so hard coding for teh names wont work. Also, if it
gt; would be possible to have it so the total gets added up as they are typed in
gt; without having to run a macro after teh fact would be awesome.
gt;
gt;
gt; Thanks in advance
gt;
gt;
gt;
- Feb 22 Thu 2007 20:35
counting
close
全站熱搜
留言列表
發表留言