Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 449
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


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
Formula based on multiple criteria Newsgal Excel Worksheet Functions 2 January 19th 09 06:56 PM
Assigning value based on criteria in Formula Hile Excel Discussion (Misc queries) 3 December 20th 07 09:35 PM
Formula for product based on criteria? Klee Excel Worksheet Functions 4 August 28th 07 03:28 AM
Executing a formula based on criteria being met confused teacher Excel Worksheet Functions 2 August 17th 06 06:56 AM
Need formula based on criteria. Me New Users to Excel 1 February 5th 05 05:47 PM


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