close

I am building a call log sheet for a friend. He needs to log each phone call
he makes each month, and track numbers of call-back requests.

There are 2 columns in question. Column E is the date that the phone call
was originally made. Every used row will have a date in col E. Column F
contains a note related to the call-back request. If there is no further
action required, the cell in col F will be blank.

My goal is to have a function (probably array function) to count the number
of non-blank cells in col F for each month, as noted in col E of the phone
call date. The analysis will appear on a separate sheet.

Example source data:
E F
2/1/2006 call back 5/4
2/1/2006
2/16/2006 send fax
2/27/2006
3/1/2006
3/7/2006 call back 4/1
3/8/2006 email pricelist
3/9/2006
3/14/2006
3/18/2006 call back 5/12

Example Results:

Feb. 2006: 2
Mar. 2006: 3

I am currently using array function
{=SUM((MONTH(Data!$E$3:$E$6000)=$A3)*(YEAR(Data!$E $3:$E$6000)=$A$2))} to
simply count the number of calls made, but am stumped as far as counting
non-blank cells adjacent to this column.

Thank you for your assistance.Time to meet SUMPRODUCT

In place of
{=SUM((MONTH(Data!$E$3:$E$6000)=$A3)*(YEAR(Data!$E $3:$E$6000)=$A$2))} Use
=SUMPRODUCT
(--(MONTH(Data!$E$3:$E$6000)=$A3), --(YEAR(Data!$E$3:$E$6000)=$A$2)) This
is NOT an array formula so just complete it with ENTER

For non-blanks
=SUMPRODUCT
(--(MONTH(Data!$E$3:$E$6000)=$A3), --(YEAR(Data!$E$3:$E$6000)=$A$2), --(Data!$F$3:$F$6000gt;quot;quot;))

For more info see
www.xldynamic.com/source/xld.SUMPRODUCT.html
explains the quot;--quot;:
mcgimpsey.com/excel/formulae/doubleneg.htmlbest wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

quot;Paulquot; gt; wrote in message
...
gt;I am building a call log sheet for a friend. He needs to log each phone
gt;call he makes each month, and track numbers of call-back requests.
gt;
gt; There are 2 columns in question. Column E is the date that the phone call
gt; was originally made. Every used row will have a date in col E. Column F
gt; contains a note related to the call-back request. If there is no further
gt; action required, the cell in col F will be blank.
gt;
gt; My goal is to have a function (probably array function) to count the
gt; number of non-blank cells in col F for each month, as noted in col E of
gt; the phone call date. The analysis will appear on a separate sheet.
gt;
gt; Example source data:
gt; E F
gt; 2/1/2006 call back 5/4
gt; 2/1/2006
gt; 2/16/2006 send fax
gt; 2/27/2006
gt; 3/1/2006
gt; 3/7/2006 call back 4/1
gt; 3/8/2006 email pricelist
gt; 3/9/2006
gt; 3/14/2006
gt; 3/18/2006 call back 5/12
gt;
gt; Example Results:
gt;
gt; Feb. 2006: 2
gt; Mar. 2006: 3
gt;
gt; I am currently using array function
gt; {=SUM((MONTH(Data!$E$3:$E$6000)=$A3)*(YEAR(Data!$E $3:$E$6000)=$A$2))} to
gt; simply count the number of calls made, but am stumped as far as counting
gt; non-blank cells adjacent to this column.
gt;
gt; Thank you for your assistance.
gt;
gt;
gt;
gt;
On my test range, this worked:

SUMPRODUCT(--(MONTH(Data!$E$1:$E$10)=MONTH(Test!$A3)),--(YEAR(Data!$E$1:$E$10)=YEAR(Test!$A3)),--(Data!$F$1:$F$10lt;gt;quot;quot;))

--
Kevin Vaughnquot;Paulquot; wrote:

gt; I am building a call log sheet for a friend. He needs to log each phone call
gt; he makes each month, and track numbers of call-back requests.
gt;
gt; There are 2 columns in question. Column E is the date that the phone call
gt; was originally made. Every used row will have a date in col E. Column F
gt; contains a note related to the call-back request. If there is no further
gt; action required, the cell in col F will be blank.
gt;
gt; My goal is to have a function (probably array function) to count the number
gt; of non-blank cells in col F for each month, as noted in col E of the phone
gt; call date. The analysis will appear on a separate sheet.
gt;
gt; Example source data:
gt; E F
gt; 2/1/2006 call back 5/4
gt; 2/1/2006
gt; 2/16/2006 send fax
gt; 2/27/2006
gt; 3/1/2006
gt; 3/7/2006 call back 4/1
gt; 3/8/2006 email pricelist
gt; 3/9/2006
gt; 3/14/2006
gt; 3/18/2006 call back 5/12
gt;
gt; Example Results:
gt;
gt; Feb. 2006: 2
gt; Mar. 2006: 3
gt;
gt; I am currently using array function
gt; {=SUM((MONTH(Data!$E$3:$E$6000)=$A3)*(YEAR(Data!$E $3:$E$6000)=$A$2))} to
gt; simply count the number of calls made, but am stumped as far as counting
gt; non-blank cells adjacent to this column.
gt;
gt; Thank you for your assistance.
gt;
gt;
gt;
gt;
gt;


SUMPRODUCT should work.

=SUMPRODUCT(--(MONTH(E1:E9)=1),--(YEAR(E1:E9)=2006),--(F1:F9lt;gt;quot;quot;))

This is for January 2006. You need to change the MONTH()=1 number for
each month accordingly, Feb = 2, March = 3 and so on. You could put
the numbers in a reference cell and have it refer to that instead.

Does that help?

Steve--
SteveG
------------------------------------------------------------------------
SteveG's Profile: www.excelforum.com/member.php...foamp;userid=7571
View this thread: www.excelforum.com/showthread...hreadid=515024Bernard, Kevin and Steve - Thank you for your replies. SUMPRODUCT seems to
do exactly what I need. I'll have to research that function further to see
what other applications it may have in my work.

Thanks again.
Paul
Here is a link to an explanation of sumproduct. I had no idea how to use it
before I read this page:

www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Kevin Vaughnquot;Paulquot; wrote:

gt; Bernard, Kevin and Steve - Thank you for your replies. SUMPRODUCT seems to
gt; do exactly what I need. I'll have to research that function further to see
gt; what other applications it may have in my work.
gt;
gt; Thanks again.
gt; Paul
gt;
gt;
gt;

全站熱搜
創作者介紹
創作者 software 的頭像
software

software

software 發表在 痞客邦 留言(0) 人氣()