Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default SumIF calculations

unit shift name start end
total hours
5D N Reyes, Victoria 0:00 8:00 8:00
5D D McKan, Pinky 7:30 16:00 8:00
3A E McKan, Pinky 15:30 24:00:00 8:00
4D N Wright, June 0:00 8:00 8:00
4D D Garcia,Jose 7:30 16:00 8:00

I am trying to get a summary of the total hours worked on a unit. I have
tried using =SUMIF(A1:A5,"5D", (F1:F5), which gives me a result of 1.0. I
have also tried using the CountA function but that doesn't return a correct
count either.

Any ideas would be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default SumIF calculations

I'm sure there is probably another way, however:

=SUMIF(A1:A5,"5D",(F1:F5))/0.0416666666666667

HTH,
Paul

--

"NEHicks" wrote in message
...
unit shift name start end
total hours
5D N Reyes, Victoria 0:00 8:00 8:00
5D D McKan, Pinky 7:30 16:00 8:00
3A E McKan, Pinky 15:30 24:00:00 8:00
4D N Wright, June 0:00 8:00 8:00
4D D Garcia,Jose 7:30 16:00 8:00

I am trying to get a summary of the total hours worked on a unit. I have
tried using =SUMIF(A1:A5,"5D", (F1:F5), which gives me a result of 1.0. I
have also tried using the CountA function but that doesn't return a
correct
count either.

Any ideas would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default SumIF calculations

Times are stored in Excel as fractions of a 24-hour day, so try it
this way:

=SUMIF(A1:A5,"5D",F1:F5)*24

to get the result in hours - format the cell as General or Number.

Hope this helps.

Pete

On Dec 17, 4:39*pm, NEHicks wrote:
*unit * * * * shift * * * * * * name * * * * *start * * * *end * * * * * * * *
* * * * * * * * *total hours
5D * * *N * * * Reyes, Victoria 0:00 * *8:00 * * * * * *8:00
5D * * *D * * * McKan, Pinky * *7:30 * *16:00 * * * * * 8:00
3A * * *E * * * McKan, Pinky * *15:30 * 24:00:00 * * * * * * * *8:00
4D * * *N * * * Wright, June * *0:00 * *8:00 * * * * * *8:00
4D * * *D * * * Garcia,Jose * * 7:30 * *16:00 * * * * * 8:00

I am trying to get a summary of the total hours worked on a unit. *I have
tried using =SUMIF(A1:A5,"5D", (F1:F5), which gives me a result of 1.0. *I
have also tried using the CountA function but that doesn't return a correct
count either.

Any ideas would be appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default SumIF calculations

Actually, looking at your sample data more thoroughly, you seem to
have some strange results in your total hours column. 7:30 to 16:00
should give you 8:30 (rows 2 and 5), and you would normally have a
display of 0:00 on row 3 (not 24:00:00), and the difference on this
row is not 8:00 either. What formula do you have in column F ?

Pete

On Dec 17, 4:39*pm, NEHicks wrote:
*unit * * * * shift * * * * * * name * * * * *start * * * *end * * * * * * * *
* * * * * * * * *total hours
5D * * *N * * * Reyes, Victoria 0:00 * *8:00 * * * * * *8:00
5D * * *D * * * McKan, Pinky * *7:30 * *16:00 * * * * * 8:00
3A * * *E * * * McKan, Pinky * *15:30 * 24:00:00 * * * * * * * *8:00
4D * * *N * * * Wright, June * *0:00 * *8:00 * * * * * *8:00
4D * * *D * * * Garcia,Jose * * 7:30 * *16:00 * * * * * 8:00

I am trying to get a summary of the total hours worked on a unit. *I have
tried using =SUMIF(A1:A5,"5D", (F1:F5), which gives me a result of 1.0. *I
have also tried using the CountA function but that doesn't return a correct
count either.

Any ideas would be appreciated.


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
VBA Set of Calculations Pam[_3_] Excel Worksheet Functions 0 November 5th 08 10:35 PM
#N/A in calculations JonR Excel Worksheet Functions 6 September 10th 06 07:33 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 12:47 PM.

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"