Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / October 2007

Tip: Looking for answers? Try searching our database.

SumIF for more than one condition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kippers - 26 Oct 2007 11:38 GMT
Hi,

I am wanting to sum up data in a column only when it corresponds to data in
2 other columns, i.e.

Stage          Person          Cost
Stage A       Person  1      £5
Stage A       Person  2      £2
Stage A       Person  4      £8
Stage A       Person  1      £7
Stage A       Person  1      £10
Stage B       Person  4      £12
Stage B       Person  4      £1
Stage C       Person  5      £3

What is the easiest way of calculating how much it costs for Person 1 in
Stage A? (actual spreadsheet contains hundreds of rows)

cheers,
VIVEKMANE - 26 Oct 2007 11:45 GMT
Hi Kippers,
              Use Filter Option to know the amount, first filter by Person1
and then filter by Stage A. You will get a result.

Regards,
Vivek Mane

> Hi,
>
[quoted text clipped - 15 lines]
>
> cheers,
Bob Phillips - 26 Oct 2007 11:58 GMT
=SUMPRODUCT(--(A2:A10="Stage A"),--(B2:B10="Person 1"),C2:C10)

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Hi,
>
[quoted text clipped - 16 lines]
>
> cheers,
Sandy Mann - 26 Oct 2007 12:13 GMT
One way:

=SUMPRODUCT((A2:A9="Stage A")*(B2:B9="Person  1")*C2:C9)

or with Stage A in D1 and Person  1 in E1:

=SUMPRODUCT((A2:A9=D1)*(B2:B9=E1)*C2:C9)

Note that you appear to have a double space in Person  1

Signature

HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk

> Hi,
>
[quoted text clipped - 16 lines]
>
> cheers,
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.