#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default sumproduct problem?

i'm using the sumproduct formula to pick up sick days for people within an
area which works fine for one criteria.

=SUMPRODUCT(--($C$5:$C$16="sick"),--($E$5:$E$16="area1"),($D$5:$D$16))

I need the formula to pick up sick, bank holidays and annual leave days and
add them all together for each area. is this possible?

Thanks
Tolga

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default sumproduct problem?

=SUMPRODUCT(--(ISNUMBER(MATCH($C$5:$C$16,{"sick","bh","leave"})) ),--($E$5:$E
$16="area1"),($D$5:$D$16))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
i'm using the sumproduct formula to pick up sick days for people within an
area which works fine for one criteria.

=SUMPRODUCT(--($C$5:$C$16="sick"),--($E$5:$E$16="area1"),($D$5:$D$16))

I need the formula to pick up sick, bank holidays and annual leave days

and
add them all together for each area. is this possible?

Thanks
Tolga



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 430
Default sumproduct problem?

Since it doesn't seem to matter whether you are sick, bh or leave,
Just use SumIf using area1 as criteria.

=SUMIF(E5:E16,"area1",D5:D16)



"Bob Phillips" wrote in message
:

=SUMPRODUCT(--(ISNUMBER(MATCH($C$5:$C$16,{"sick","bh","leave"})) ),--($E$5:$E
$16="area1"),($D$5:$D$16))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
i'm using the sumproduct formula to pick up sick days for people within an
area which works fine for one criteria.

=SUMPRODUCT(--($C$5:$C$16="sick"),--($E$5:$E$16="area1"),($D$5:$D$16))

I need the formula to pick up sick, bank holidays and annual leave days

and
add them all together for each area. is this possible?

Thanks
Tolga


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default sumproduct problem?

There are probably blanks or something else Jim to indicate attendance.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Jim May" wrote in message
news:cwNqg.51856$fG3.29160@dukeread09...
Since it doesn't seem to matter whether you are sick, bh or leave,
Just use SumIf using area1 as criteria.

=SUMIF(E5:E16,"area1",D5:D16)



"Bob Phillips" wrote in message
:


=SUMPRODUCT(--(ISNUMBER(MATCH($C$5:$C$16,{"sick","bh","leave"})) ),--($E$5:$E
$16="area1"),($D$5:$D$16))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
i'm using the sumproduct formula to pick up sick days for people

within an
area which works fine for one criteria.

=SUMPRODUCT(--($C$5:$C$16="sick"),--($E$5:$E$16="area1"),($D$5:$D$16))

I need the formula to pick up sick, bank holidays and annual leave

days
and
add them all together for each area. is this possible?

Thanks
Tolga




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default sumproduct problem?

Thanks for the quick response however, it's not working how i'd like it to be.

As well as adding sick, bh, leave together. it's also adding regular time
even though it's not part of the criteria. I've incorrectly spelt holiday in
the formula to see if it's taking notice of the criteria and it still picks
it up the data.

Any ideas?

"Bob Phillips" wrote:

=SUMPRODUCT(--(ISNUMBER(MATCH($C$5:$C$16,{"sick","bh","leave"})) ),--($E$5:$E
$16="area1"),($D$5:$D$16))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
i'm using the sumproduct formula to pick up sick days for people within an
area which works fine for one criteria.

=SUMPRODUCT(--($C$5:$C$16="sick"),--($E$5:$E$16="area1"),($D$5:$D$16))

I need the formula to pick up sick, bank holidays and annual leave days

and
add them all together for each area. is this possible?

Thanks
Tolga






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default sumproduct problem?

No it doesn't, I have just tried it again.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
Thanks for the quick response however, it's not working how i'd like it to

be.

As well as adding sick, bh, leave together. it's also adding regular time
even though it's not part of the criteria. I've incorrectly spelt holiday

in
the formula to see if it's taking notice of the criteria and it still

picks
it up the data.

Any ideas?

"Bob Phillips" wrote:


=SUMPRODUCT(--(ISNUMBER(MATCH($C$5:$C$16,{"sick","bh","leave"})) ),--($E$5:$E
$16="area1"),($D$5:$D$16))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
i'm using the sumproduct formula to pick up sick days for people

within an
area which works fine for one criteria.

=SUMPRODUCT(--($C$5:$C$16="sick"),--($E$5:$E$16="area1"),($D$5:$D$16))

I need the formula to pick up sick, bank holidays and annual leave

days
and
add them all together for each area. is this possible?

Thanks
Tolga






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default sumproduct problem?

just done it. The MATCH wasn't closed off with 0.

=SUMPRODUCT(--(ISNUMBER(MATCH($C$5:$C$16,{"sick","bh","leave"},0 ))),--($E$5:$E$16="area1"),($D$5:$D$16))

Thanks for all your help.

"Bob Phillips" wrote:

No it doesn't, I have just tried it again.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
Thanks for the quick response however, it's not working how i'd like it to

be.

As well as adding sick, bh, leave together. it's also adding regular time
even though it's not part of the criteria. I've incorrectly spelt holiday

in
the formula to see if it's taking notice of the criteria and it still

picks
it up the data.

Any ideas?

"Bob Phillips" wrote:


=SUMPRODUCT(--(ISNUMBER(MATCH($C$5:$C$16,{"sick","bh","leave"})) ),--($E$5:$E
$16="area1"),($D$5:$D$16))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Tolga" wrote in message
...
i'm using the sumproduct formula to pick up sick days for people

within an
area which works fine for one criteria.

=SUMPRODUCT(--($C$5:$C$16="sick"),--($E$5:$E$16="area1"),($D$5:$D$16))

I need the formula to pick up sick, bank holidays and annual leave

days
and
add them all together for each area. is this possible?

Thanks
Tolga







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
Problem using ADDRESS() in SUMPRODUCT() rmellison Excel Discussion (Misc queries) 2 January 9th 06 11:14 AM
Frustrating SUMPRODUCT problem. rmellison Excel Discussion (Misc queries) 1 January 6th 06 01:58 PM
Excel Display Problem Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 0 April 19th 05 05:25 PM
SUMPRODUCT Problem Mestrella31 Excel Discussion (Misc queries) 2 December 21st 04 07:01 PM
SUMPRODUCT problem Jane Excel Worksheet Functions 3 November 8th 04 11:58 PM


All times are GMT +1. The time now is 07:21 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"