A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formula based on 3 criteria



 
 
Thread Tools Display Modes
  #1  
Old February 10th, 2009, 02:34 PM posted to microsoft.public.excel.misc
Craig
external usenet poster
 
Posts: 506
Default Formula based on 3 criteria

A1 B1 C1
Location Hours Month
Essex 12 December
Kent 13 December
Surrey 32 December
Essex 13 January
Surrey 13 January
Essex 45 January
Surrey 22 January
Kent 24 January

I need a formula that picks out a location, adds up the total hours for that
location but only for a chosen month. For example from the table above i
might want to look at the total hours spent working in Essex but only in
January. In this case it would be 58 Can you help please? The answer would be
displayed in D1

Thanks
Craig

  #2  
Old February 10th, 2009, 02:38 PM posted to microsoft.public.excel.misc
Bob Phillips[_2_]
external usenet poster
 
Posts: 1,562
Default Formula based on 3 criteria

=SUMPRODUCT(--(A2:A20="Essex"),--(C2:C20="January),B2:B20)

--
__________________________________
HTH

Bob

"Craig" wrote in message
...
A1 B1 C1
Location Hours Month
Essex 12 December
Kent 13 December
Surrey 32 December
Essex 13 January
Surrey 13 January
Essex 45 January
Surrey 22 January
Kent 24 January

I need a formula that picks out a location, adds up the total hours for
that
location but only for a chosen month. For example from the table above i
might want to look at the total hours spent working in Essex but only in
January. In this case it would be 58 Can you help please? The answer would
be
displayed in D1

Thanks
Craig



  #3  
Old February 10th, 2009, 02:40 PM posted to microsoft.public.excel.misc
Sean Timmons
external usenet poster
 
Posts: 1,722
Default Formula based on 3 criteria

in D1...

=sumproduct(--(A2:A500="Essex"),--(c2:c500="December"),B2:B500)

will get it for you!

"Craig" wrote:

A1 B1 C1
Location Hours Month
Essex 12 December
Kent 13 December
Surrey 32 December
Essex 13 January
Surrey 13 January
Essex 45 January
Surrey 22 January
Kent 24 January

I need a formula that picks out a location, adds up the total hours for that
location but only for a chosen month. For example from the table above i
might want to look at the total hours spent working in Essex but only in
January. In this case it would be 58 Can you help please? The answer would be
displayed in D1

Thanks
Craig

  #4  
Old February 10th, 2009, 04:41 PM posted to microsoft.public.excel.misc
Harald Staff[_2_]
external usenet poster
 
Posts: 198
Default Formula based on 3 criteria

Hi Craig

Use a pivot table for things like this.

Best wishes Harald

"Craig" wrote in message
...
A1 B1 C1
Location Hours Month
Essex 12 December
Kent 13 December
Surrey 32 December
Essex 13 January
Surrey 13 January
Essex 45 January
Surrey 22 January
Kent 24 January

I need a formula that picks out a location, adds up the total hours for
that
location but only for a chosen month. For example from the table above i
might want to look at the total hours spent working in Essex but only in
January. In this case it would be 58 Can you help please? The answer would
be
displayed in D1

Thanks
Craig


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:24 PM.


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