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

I am using Excel 2002 and have a set of data that I am working with,
trying, unsuccessfully, to calculate an over or under availability of
resource.

The data is in rows 2 thru 986 and the summaries are in 987 onwards

Column I contains the team name
Column K contains the type of entry (Project, Base/BAU, Available
Project, Available Remander)
Column P contains the effort allocated/available

I want to sum the Project and Base/BAU figures and subtract the sum of
Available Project/Available Remainder

My formula is as follows, however the result is always 0.
{=(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Project"),--
($K2:$K986="Base/BAU"),P$2:P$986))-(SUMPRODUCT(--($I2:$I986=$I987),--
($K2:$K986="Available Project"),--($K2:$K986="Available Remainder"),P
$2:P$986))}

Any help gratefully received
Fred
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Sumproduct keeps giving zero

Hi Fred

You can not test for both Project and Base/BAU in one SumProduct formula. If
the one return true, the other will return false, and then this row will
return a 0.

The first part of your formula should be:

=(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Project"),P$2:P$986)+(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Base/BAU"),P$2:P$986))

Regards,
Per

"Fred" skrev i meddelelsen
...
I am using Excel 2002 and have a set of data that I am working with,
trying, unsuccessfully, to calculate an over or under availability of
resource.

The data is in rows 2 thru 986 and the summaries are in 987 onwards

Column I contains the team name
Column K contains the type of entry (Project, Base/BAU, Available
Project, Available Remander)
Column P contains the effort allocated/available

I want to sum the Project and Base/BAU figures and subtract the sum of
Available Project/Available Remainder

My formula is as follows, however the result is always 0.
{=(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Project"),--
($K2:$K986="Base/BAU"),P$2:P$986))-(SUMPRODUCT(--($I2:$I986=$I987),--
($K2:$K986="Available Project"),--($K2:$K986="Available Remainder"),P
$2:P$986))}

Any help gratefully received
Fred


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 59
Default Sumproduct keeps giving zero

Hi Per,

Thanks for that, so obvious, but it takes someone else to point out
the obvious.

Regards
Fred
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sumproduct keeps giving zero

=(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Project"),P$2:P$986)+(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Base/BAU"),P$2:P$986))

Another way:

=(SUMPRODUCT(--($I2:$I986=$I987),--(ISNUMBER(MATCH($K2:$K986,{"Project","Base/BAU"},0))),P$2:P$986))

--
Biff
Microsoft Excel MVP


"Per Jessen" wrote in message
...
Hi Fred

You can not test for both Project and Base/BAU in one SumProduct formula.
If the one return true, the other will return false, and then this row
will return a 0.

The first part of your formula should be:

=(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Project"),P$2:P$986)+(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Base/BAU"),P$2:P$986))

Regards,
Per

"Fred" skrev i meddelelsen
...
I am using Excel 2002 and have a set of data that I am working with,
trying, unsuccessfully, to calculate an over or under availability of
resource.

The data is in rows 2 thru 986 and the summaries are in 987 onwards

Column I contains the team name
Column K contains the type of entry (Project, Base/BAU, Available
Project, Available Remander)
Column P contains the effort allocated/available

I want to sum the Project and Base/BAU figures and subtract the sum of
Available Project/Available Remainder

My formula is as follows, however the result is always 0.
{=(SUMPRODUCT(--($I2:$I986=$I987),--($K2:$K986="Project"),--
($K2:$K986="Base/BAU"),P$2:P$986))-(SUMPRODUCT(--($I2:$I986=$I987),--
($K2:$K986="Available Project"),--($K2:$K986="Available Remainder"),P
$2:P$986))}

Any help gratefully received
Fred




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
Using NAMES in SUMPRODUCT giving error SFC Traver Excel Worksheet Functions 2 June 26th 08 09:51 PM
Another SUMPRODUCT giving the incorrect number Richard Excel Discussion (Misc queries) 11 June 22nd 07 03:50 PM
SUMPRODUCT is giving incorrect number Richard Excel Discussion (Misc queries) 2 June 22nd 07 11:17 AM
SUMPRODUCT - Giving me trouble porter444 Excel Worksheet Functions 3 May 22nd 07 11:04 AM
Sumproduct giving #NA Gary Excel Worksheet Functions 2 August 3rd 06 11:47 AM


All times are GMT +1. The time now is 10:57 PM.

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

About Us

"It's about Microsoft Excel"