LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default SUMIF Formula

Parentheses make a world of difference. You need to apply the double unary
minus to the boolean result of the comparison, not to the time in column C.

Change
=SUMPRODUCT(--(E3:E49=1),--(B3:B49<=TIME(17,30,0)),--C3:C49=TIME(17,30,0))
to
=SUMPRODUCT(--(E3:E49=1),--(B3:B49<=TIME(17,30,0)),--(C3:C49=TIME(17,30,0)))
--
David Biddulph

"JKVA" wrote in message
...
I definitely tried that, but can't get it to return anything other than 0.
Here's my formula:
=SUMPRODUCT(--(E3:E49=1),--(B3:B49<=TIME(17,30,0)),--C3:C49=TIME(17,30,0))

Column E has the "1" if an employee is working
Column B has the employees' in time
Column C has the employees' out time

Everything is formatted properly, but something's definitely amiss.

Thanks again for all of the help.

"Fred Smith" wrote:

Then remove the name check, as in:
=sumproduct(--(b1:b100=1),--(c1:c100<=time(15,0,0)),--(d1:d100)=time(15,0,0))

Regards.
Fred


"JKVA" wrote in message
...
Very interesting.
What if I'm not concerned with employee name. I'm just trying to get a
count of how many employees are working at specific time periods (0700,
0900,
1100, 1730, and 1930) based on their time in/time out. I would want to
display this count at the bottom of the spreadsheet under each day of
the
month.
Thanks for your help.

"Fred Smith" wrote:

It would look something like this:
=sumproduct(--(a1:a100="Fred
Smith"),--(b1:b100=1),--(c1:c100<=time(15,0,0)),--(d1:d100)=time(15,0,0))
Adjust the ranges to suit.

Regards,
Fred.

"JKVA" wrote in message
...
Could someone help me to create a SUMIF formula in Excel 2003 that
sums
the
employees working at a certain time (i.e. 1500, 1700, 1900)? Each
row
would
have the employee's time in and time out and the columns would show
each
day
of the month. If an employee is working that day, there's a "1".
The
employees always work the same hours.
Thank You.

.


.



 
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 Help -- SUMIF Evan Excel Discussion (Misc queries) 4 May 13th 09 08:47 PM
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
sumif formula doesn't add up Janis Excel Discussion (Misc queries) 3 August 14th 07 03:06 PM
multiply formula where 1 cell has a (sumif) formula as a result kcip Excel Worksheet Functions 1 May 3rd 07 07:41 AM
Is there a MAXIF formula similar to the SUMIF formula? tlc Excel Discussion (Misc queries) 2 March 13th 06 08:07 PM


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