LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default CountIF and Sum in one formula?

=sumproduct((A1:A5="JG")*(B1:B5="MP"),C1:C5)

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Scott A" wrote in message
...
I have another part that I totally forgot about. I have a second formula
that
is needed and it includes another variable. I need it to narrow the sum
total
to only projects of a certain type of contract by the same person.

example:

A B C
Prsn Type Contracts
1 JG MP $8000.00
2 JG DV $1200.00
3 JG MP $10000.00
4 SA MP $6000.00
5 SA DV $4500.00

I need it to calculate the total contract amount for JG and only the MP
types of contracts. Is that possible without using a pivot table?

"Shane Devenshire" wrote:

Hi,

Put JG in a cell, say H1 then use the formula

=SUMIF(A$2:A$6,H1,B$2:B$6)

This way you can copy the formula down so if H2 has "SA" then the second
formula sum his/her numbers and so on.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Scott A" wrote:

Hello,

I am trying to sun up all of the costs in one column if it was done by
a
specific person.

Example:

A B
Prsn Contracts
1 JG $8000.00
2 JG $1200.00
3 SA $10000.00
4 TS $6000.00
5 TS $4500.00

What I am looking for is a formula that will tell me how much is the
total
value of all of the contracts sold by JG.

Can anyone help?

 
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
Formula Help (countif, I think....) RUSH2CROCHET Excel Discussion (Misc queries) 2 June 6th 08 10:14 PM
Countif formula Mike Excel Discussion (Misc queries) 3 May 2nd 07 07:56 PM
Formula Countif TRM Excel Discussion (Misc queries) 2 September 11th 06 08:25 PM
CountIf formula results in the formula itself being displayed. NewKid Excel Worksheet Functions 9 December 21st 05 11:10 PM
Another Countif Formula Stephen Excel Discussion (Misc queries) 3 April 22nd 05 04:29 PM


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