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 for searching 3 different Criteria

A1 B1 C1
Location Hours Month
Essex 6 November
Kent 13 November
Surrey 14 December
Middlesex 24 January
Essex 17 January
Kent 12 January
Essex 16 January
Essex 21 January

From the table above I need a formula that will filter out the location i
want, total the number of hours for that location but only in a given month.

For example in the table above i would be looking for a total number of
hours spent in Essex but only those for January. The answer would therefore
read 54. Answer would be in D1.

Thanks in advance
Craig

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Formula for searching 3 different Criteria

Hi Craig

=SUMPRODUCT(($A$2:$A$100="Essex")*($C$2:$C$100="No vember")*$B$2:$B$100)
Better to put the variables in cells
Put Months in F1 going across. Put Counties in E2 going down
=SUMPRODUCT(($A$2:$A$100=$E2)*($C$2:$C$100=$F1)*$B $2:$B$100)
Copy across and down

Better still use a Pivot Table
Place cursor in tableDataPivot TableFinish
On the PT skeleton that appears on a ne sheet
Drag Location from the field list to the Row Area
Drag Month from the field list to the Column Area
Drag Hours to the Data area

--
Regards
Roger Govier

"Craig" wrote in message
...
A1 B1 C1
Location Hours Month
Essex 6 November
Kent 13 November
Surrey 14 December
Middlesex 24 January
Essex 17 January
Kent 12 January
Essex 16 January
Essex 21 January

From the table above I need a formula that will filter out the location i
want, total the number of hours for that location but only in a given
month.

For example in the table above i would be looking for a total number of
hours spent in Essex but only those for January. The answer would
therefore
read 54. Answer would be in D1.

Thanks in advance
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
Searching for records with multiple criteria Jeff Excel Worksheet Functions 7 December 11th 08 10:07 PM
Searching two columns against a specific criteria Colin Excel Worksheet Functions 2 July 10th 07 07:20 PM
Formula searching data that dose not equal two criteria FarmerGemGem Excel Discussion (Misc queries) 4 March 20th 07 10:04 AM
Searching for a criteria in array of cells within an IF statement selvaraj Excel Worksheet Functions 1 July 28th 05 03:36 PM
searching for specific criteria and then doing an action based on Bill Excel Discussion (Misc queries) 1 July 20th 05 03:55 AM


All times are GMT +1. The time now is 08:37 AM.

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"