Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional

Data looks like this

Name Project Date Hours
Carl Project 1 01/01/2006 8
Carl Project 1 02/01/2006 8
Jim Project 1 01/01/2006 8
Jim Project 1 01/02/2006 8
Carl Project 2 03/01/2006 8

Trying to create report like this

Name Project Jan Feb Mar Apr
Carl Project1 8 8 8 0
Project2 8 8 8 0
Jim Project1 16 0 0 0

I used the following argument but the values returned in the month cells are
always 0 If I remove one of the conditions it returns the number fo hours
for the project by month or name by month. FYI ('All data!A=Name) ("All
data'!B=Project) ("All data'!C=Date) ("All data'!D=hours) The (A=Name and B
= Project on the report worksheet)

=SUMPRODUCT(--(MONTH('All data'!$C$2:$C$9000)=1),--('All
data'!$A$2:$A$9000=$A$2),--('All data'!$B$2:$B$9000=$B2),'All
data'!$D$2:$D$9000)

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Sumproduct conditional

Check your original post for answers!
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Carl" wrote in message
...
Data looks like this

Name Project Date Hours
Carl Project 1 01/01/2006 8
Carl Project 1 02/01/2006 8
Jim Project 1 01/01/2006 8
Jim Project 1 01/02/2006 8
Carl Project 2 03/01/2006 8

Trying to create report like this

Name Project Jan Feb Mar Apr
Carl Project1 8 8 8 0
Project2 8 8 8 0
Jim Project1 16 0 0 0

I used the following argument but the values returned in the month cells
are
always 0 If I remove one of the conditions it returns the number fo hours
for the project by month or name by month. FYI ('All data!A=Name) ("All
data'!B=Project) ("All data'!C=Date) ("All data'!D=hours) The (A=Name and
B
= Project on the report worksheet)

=SUMPRODUCT(--(MONTH('All data'!$C$2:$C$9000)=1),--('All
data'!$A$2:$A$9000=$A$2),--('All data'!$B$2:$B$9000=$B2),'All
data'!$D$2:$D$9000)


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Sumproduct conditional

hi Carl,

why not to use a Pivot Table? it will give the information easy

hth
regards from Brazil
Marcelo

"Carl" escreveu:

Data looks like this

Name Project Date Hours
Carl Project 1 01/01/2006 8
Carl Project 1 02/01/2006 8
Jim Project 1 01/01/2006 8
Jim Project 1 01/02/2006 8
Carl Project 2 03/01/2006 8

Trying to create report like this

Name Project Jan Feb Mar Apr
Carl Project1 8 8 8 0
Project2 8 8 8 0
Jim Project1 16 0 0 0

I used the following argument but the values returned in the month cells are
always 0 If I remove one of the conditions it returns the number fo hours
for the project by month or name by month. FYI ('All data!A=Name) ("All
data'!B=Project) ("All data'!C=Date) ("All data'!D=hours) The (A=Name and B
= Project on the report worksheet)

=SUMPRODUCT(--(MONTH('All data'!$C$2:$C$9000)=1),--('All
data'!$A$2:$A$9000=$A$2),--('All data'!$B$2:$B$9000=$B2),'All
data'!$D$2:$D$9000)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional

I was able to get the orginal question working, the issue here is that I now
have an additional condition I.E. If (dataMonth equal month) and (dataName
= name) and (dataproject = project) then Sum hours

"RagDyer" wrote:

Check your original post for answers!
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Carl" wrote in message
...
Data looks like this

Name Project Date Hours
Carl Project 1 01/01/2006 8
Carl Project 1 02/01/2006 8
Jim Project 1 01/01/2006 8
Jim Project 1 01/02/2006 8
Carl Project 2 03/01/2006 8

Trying to create report like this

Name Project Jan Feb Mar Apr
Carl Project1 8 8 8 0
Project2 8 8 8 0
Jim Project1 16 0 0 0

I used the following argument but the values returned in the month cells
are
always 0 If I remove one of the conditions it returns the number fo hours
for the project by month or name by month. FYI ('All data!A=Name) ("All
data'!B=Project) ("All data'!C=Date) ("All data'!D=hours) The (A=Name and
B
= Project on the report worksheet)

=SUMPRODUCT(--(MONTH('All data'!$C$2:$C$9000)=1),--('All
data'!$A$2:$A$9000=$A$2),--('All data'!$B$2:$B$9000=$B2),'All
data'!$D$2:$D$9000)



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional

The arguement works on the same sheet as the data, but when I move the
function to the new worksheet the answer becomes zero.

=SUMPRODUCT(--(MONTH('All data'!$C$2:$C$9000)=1),--('All
data'!$A$2:$A$9000=$A$2),--('All data'!$B$2:$B$9000=$B2),'All
data'!$D$2:$D$9000)

"RagDyer" wrote:

Check your original post for answers!
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Carl" wrote in message
...
Data looks like this

Name Project Date Hours
Carl Project 1 01/01/2006 8
Carl Project 1 02/01/2006 8
Jim Project 1 01/01/2006 8
Jim Project 1 01/02/2006 8
Carl Project 2 03/01/2006 8

Trying to create report like this

Name Project Jan Feb Mar Apr
Carl Project1 8 8 8 0
Project2 8 8 8 0
Jim Project1 16 0 0 0

I used the following argument but the values returned in the month cells
are
always 0 If I remove one of the conditions it returns the number fo hours
for the project by month or name by month. FYI ('All data!A=Name) ("All
data'!B=Project) ("All data'!C=Date) ("All data'!D=hours) The (A=Name and
B
= Project on the report worksheet)

=SUMPRODUCT(--(MONTH('All data'!$C$2:$C$9000)=1),--('All
data'!$A$2:$A$9000=$A$2),--('All data'!$B$2:$B$9000=$B2),'All
data'!$D$2:$D$9000)





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 361
Default Sumproduct conditional

Thanks, but I have never learned pivot tables, and right now I am determined
to make this function work... LOL

"Marcelo" wrote:

hi Carl,

why not to use a Pivot Table? it will give the information easy

hth
regards from Brazil
Marcelo

"Carl" escreveu:

Data looks like this

Name Project Date Hours
Carl Project 1 01/01/2006 8
Carl Project 1 02/01/2006 8
Jim Project 1 01/01/2006 8
Jim Project 1 01/02/2006 8
Carl Project 2 03/01/2006 8

Trying to create report like this

Name Project Jan Feb Mar Apr
Carl Project1 8 8 8 0
Project2 8 8 8 0
Jim Project1 16 0 0 0

I used the following argument but the values returned in the month cells are
always 0 If I remove one of the conditions it returns the number fo hours
for the project by month or name by month. FYI ('All data!A=Name) ("All
data'!B=Project) ("All data'!C=Date) ("All data'!D=hours) The (A=Name and B
= Project on the report worksheet)

=SUMPRODUCT(--(MONTH('All data'!$C$2:$C$9000)=1),--('All
data'!$A$2:$A$9000=$A$2),--('All data'!$B$2:$B$9000=$B2),'All
data'!$D$2:$D$9000)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct conditional with dates Carl Excel Discussion (Misc queries) 5 August 10th 06 09:42 PM
Conditional sumproduct? rahirah New Users to Excel 1 January 11th 06 10:46 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 06:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"