Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
tbird0566
 
Posts: n/a
Default multiple criteria in if or sumproduct


I am trying to set up a leave time report for people to use. The format
is below:


Date Type or Leave Hours Taken
07/01/2005 A 8
07/15/2005 A 6
08/15/2005 S 5
etc etc etc


I need a formula to look at the date and find all leave taken for a
specific type of leave for the month and then total the hours taken for
that month. For instance, in the above example 14 hours for the month
of July. I only need the result of 14.
Please help. :)


--
tbird0566
------------------------------------------------------------------------
tbird0566's Profile: http://www.excelforum.com/member.php...o&userid=27375
View this thread: http://www.excelforum.com/showthread...hreadid=468942

  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Let A1:C4 house the sample you provided.

In E2 enter: 1-Jul-2005

which you might want to format as Jul-05 for display purposes.

In F2 enter: A

which is a type value.

In G2 enter:

=SUMPRODUCT(--($A$2:$A44-DAY($A$2:$A$4)+1=E2),--($B$2:$B$4=F2),$C$2:$C$4)

tbird0566 wrote:
I am trying to set up a leave time report for people to use. The format
is below:


Date Type or Leave Hours Taken
07/01/2005 A 8
07/15/2005 A 6
08/15/2005 S 5
etc etc etc


I need a formula to look at the date and find all leave taken for a
specific type of leave for the month and then total the hours taken for
that month. For instance, in the above example 14 hours for the month
of July. I only need the result of 14.
Please help. :)


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
COUNTIF or SUMPRODUCT counting multiple criteria Peo Sjoblom Excel Worksheet Functions 0 May 31st 05 11:40 PM
Using Sumproduct with multiple Criteria Mark Jackson Excel Worksheet Functions 1 May 6th 05 10:07 PM
Sumproduct with a vLookup, multiple criteria Tom F Excel Worksheet Functions 3 May 6th 05 04:28 PM
sumproduct using multiple criteria tifosi3 Excel Worksheet Functions 2 January 6th 05 08:46 PM
Sumproduct - multiple criteria in Column A briank Excel Worksheet Functions 2 January 6th 05 06:44 PM


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