View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Joe User[_2_] Joe User[_2_] is offline
external usenet poster
 
Posts: 905
Default Formula to sum up the dates

"Kimti" wrote:
I have the dates in column A and names in
column B. Employees are entering their names
and dates as they are assigned the tasks. Ther
are other formulas in place, so I don't want to
change the date columns to the rows.
Please provide further help to work with columns
not the rows.


It is difficult to make specific suggestions about spreadsheet design at
arm's-length. If you wish, you can send me your Excel file. Send it as an
attachment to joeu2004 "at" hotmail.com.

However, I think my original suggestion should meet your needs. Employees
can modify the columnar data in Sheet1. You can put the summary formulas
into Sheet2.

Regarding Sheet2, I had suggested that the employee names be in a column,
and the tasks per month go along the row.

If you are saying that you would prefer to put the employee names along the
row and tasks per month in the columns, that should be a relatively simple
change, to wit:

=SUMPRODUCT((MONTH(Sheet1!$A$1:$A$1000)=MONTH($A2) )
*(Sheet1!$B$1:$B$1000=B$1))

assuming that the months (dates) are in A2:A13, and the employee names (11)
are in B1:L1.

If you are concerned about employees inadvertently altering Sheet2, that can
be addressed in any one of several ways, depending on your requirements.

Hope this helps. If not, but you think I'm on the right track, again, feel
free to send me your Excel file in email.


----- original message -----

"Kimti" wrote:
Thank you for the quick response. I have the dates in column A and names in
column B. Employees are entering their names and dates as they are assigned
the tasks. Ther are other formulas in place, so I don't want to change the
date columns to the rows. Please provide further help to work with columns
not the rows.

Thanks,

Kimti

"Joe User" wrote:

"Kimti" wrote:
I have column A with the date and column B
with the name of person assigned for the task.
I would like to count how many tasks assigned
to any particular person for whole month based
on column A dates.


Suppose that is in rows 1:1000 in Sheet1, and in Sheet2, you have the list
of employees in column A starting in A2 and the 12 months in B1:M1. The
months should be entered as the first date of each month
(1/1/2010,2/1/2010,etc) formatted with the Custom format "mmm" without quotes
or any other format of your choice.

Put the following formula into B2 and copy across through M2, then copy
B2:M2 down for all employess:

=SUMPRODUCT((MONTH(Sheet1!$A$1:$A$1000)=MONTH(B$1) )
*(Sheet1!$B$1:$B$1000=$A2))

The "*" acts as AND in this context. We cannot use AND() directly.


----- original message -----


"Kimti" wrote:
I have column A with the date and column B with the name of person assigned
for the task. I would like to count how many tasks assigned to any particular
person for whole month based on column A dates.

A B
Jan 10, 2010 John C
Jan 12, 2010 Jason B
Jan 13, 2010 John C

John C was assigned two tasks in Month of Jan. Usally I have about 80 tasks
for 11 employees per month.

Thank you in advance for your help.