Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
masik
 
Posts: n/a
Default Criteria based sum question

I have data in the following format

Resource Type Resource Project
Regular 10 A
Regular 20 A
Contractor 05 A
Regular 10 B
Contractor 15 B


How would I find the sum of all resources (regular and contractor) for
project A, B, C etc. Which formula do I use? And then sum of regulars for
project A, B, C etc.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Criteria based sum question

All: =SUMIF(C:C,"A",B:B)

Regulars: =SUMPRODUCT(--(B2:B100="A"),--(A2:A100="Regular"),C2:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob Phillips

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

"masik" wrote in message
...
I have data in the following format

Resource Type Resource Project
Regular 10 A
Regular 20 A
Contractor 05 A
Regular 10 B
Contractor 15 B


How would I find the sum of all resources (regular and contractor) for
project A, B, C etc. Which formula do I use? And then sum of regulars for
project A, B, C etc.

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Criteria based sum question

Total resources for Project A

=sumproduct(--(C1:C100="A"),--(B1:B100))

Regular resources for Project A

=Sumproduct(--(A1:A100="Regular"),--((--(C1:C100="A"),--(B1:B100))


HTH

"masik" wrote:

I have data in the following format

Resource Type Resource Project
Regular 10 A
Regular 20 A
Contractor 05 A
Regular 10 B
Contractor 15 B


How would I find the sum of all resources (regular and contractor) for
project A, B, C etc. Which formula do I use? And then sum of regulars for
project A, B, C etc.

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
masik
 
Posts: n/a
Default Criteria based sum question

Thanks HTH and Bob. I tried the SUMIF and it works. But not sure I understand
sumproduct. I am new to excel here so please bear with me.

What is -- in the formula? Excel does not take this. I tried using copy /
paste. Can you please elaborate?

Thanks.

"Toppers" wrote:

Total resources for Project A

=sumproduct(--(C1:C100="A"),--(B1:B100))

Regular resources for Project A

=Sumproduct(--(A1:A100="Regular"),--((--(C1:C100="A"),--(B1:B100))


HTH

"masik" wrote:

I have data in the following format

Resource Type Resource Project
Regular 10 A
Regular 20 A
Contractor 05 A
Regular 10 B
Contractor 15 B


How would I find the sum of all resources (regular and contractor) for
project A, B, C etc. Which formula do I use? And then sum of regulars for
project A, B, C etc.

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
masik
 
Posts: n/a
Default Criteria based sum question

Thanks HTH and Bob. I tried the SUMIF and it works. But not sure I understand
sumproduct. I am new to excel here so please bear with me.

What is -- in the formula? Excel does not take this. I tried using copy /
paste. Can you please elaborate?

Thanks.

"Bob Phillips" wrote:

All: =SUMIF(C:C,"A",B:B)

Regulars: =SUMPRODUCT(--(B2:B100="A"),--(A2:A100="Regular"),C2:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob Phillips

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

"masik" wrote in message
...
I have data in the following format

Resource Type Resource Project
Regular 10 A
Regular 20 A
Contractor 05 A
Regular 10 B
Contractor 15 B


How would I find the sum of all resources (regular and contractor) for
project A, B, C etc. Which formula do I use? And then sum of regulars for
project A, B, C etc.

Thanks.






  #6   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Criteria based sum question

See http://www.xldynamic.com/source/xld.SUMPRODUCT.html for a detailed
explanation.

--
HTH

Bob Phillips

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

"masik" wrote in message
...
Thanks HTH and Bob. I tried the SUMIF and it works. But not sure I

understand
sumproduct. I am new to excel here so please bear with me.

What is -- in the formula? Excel does not take this. I tried using copy /
paste. Can you please elaborate?

Thanks.

"Bob Phillips" wrote:

All: =SUMIF(C:C,"A",B:B)

Regulars: =SUMPRODUCT(--(B2:B100="A"),--(A2:A100="Regular"),C2:C100)

Note that SUMPRODUCT doesn't work with complete columns, you have to

specify
a range.

--
HTH

Bob Phillips

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

"masik" wrote in message
...
I have data in the following format

Resource Type Resource Project
Regular 10 A
Regular 20 A
Contractor 05 A
Regular 10 B
Contractor 15 B


How would I find the sum of all resources (regular and contractor) for
project A, B, C etc. Which formula do I use? And then sum of regulars

for
project A, B, C etc.

Thanks.






  #7   Report Post  
Posted to microsoft.public.excel.misc
Toppers
 
Posts: n/a
Default Criteria based sum question

Sorry ...there was a typo.

See Bob Phillips' reply for explanation of SUMPRODUCT.

=Sumproduct(--(A1:A100="Regular"),--(C1:C100="A"),--(B1:B100))

"masik" wrote:

Thanks HTH and Bob. I tried the SUMIF and it works. But not sure I understand
sumproduct. I am new to excel here so please bear with me.

What is -- in the formula? Excel does not take this. I tried using copy /
paste. Can you please elaborate?

Thanks.

"Toppers" wrote:

Total resources for Project A

=sumproduct(--(C1:C100="A"),--(B1:B100))

Regular resources for Project A

=Sumproduct(--(A1:A100="Regular"),--((--(C1:C100="A"),--(B1:B100))


HTH

"masik" wrote:

I have data in the following format

Resource Type Resource Project
Regular 10 A
Regular 20 A
Contractor 05 A
Regular 10 B
Contractor 15 B


How would I find the sum of all resources (regular and contractor) for
project A, B, C etc. Which formula do I use? And then sum of regulars for
project A, B, C etc.

Thanks.

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
return multiple rows of data based on criteria steve_sr2 Excel Worksheet Functions 8 May 20th 23 07:47 PM
Delete rows based on criteria Chris_t_2k5 Excel Discussion (Misc queries) 2 April 11th 06 01:52 PM
how to count unique values in excel based on multiple criteria IDBUGM Excel Worksheet Functions 3 March 15th 06 04:00 PM
Locate a Cell based upon criteria Stan Excel Discussion (Misc queries) 1 September 23rd 05 03:05 PM
counting cells (COUNTIF) based on two or more criteria Tricia S. Excel Worksheet Functions 10 March 17th 05 02:17 PM


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