Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Suggestions on what function - staff record hours sheet

Well I thought I had it sussed but now I am not quite sure.

I am trying to devise a staff record sheet that summarises hours taken off
for annual leave, (AL), sick leave, (SK) study leave, (SD) and compassionate
leave, (CL).

I have the months detailed down in column A and each month has two rows. One
row is for the absence code (AL, SK, etc) and the cell immediately below this
code, there will be the hours that relates to this absence. Just to be
arkward, the times can vary greatly. I could do it fine if the hours were
always the same!

Further down the sheet I have summarised each months' absences according to
code but I need to instruct Excel to know which ones to count and when.
Therein lies the challenge.

The code that I have used so far is
=COUNTIF(A9,"AL")*A10+COUNTIF(B9."AL)*B10+COUNTIF( C9,"AL")*C10 etc etc etc
until the month is then completed. I then redo the same formula for the other
absence codes.

This obviously takes a long time to do and then sometimes it doesn't seem to
work and just gives #### in the total box. This might be just after the
formula has worked so I know it's not a trying error or a missing character.
Strangely though, I have copied to the formula and pasted it into the totals
box for the other months and it seems to work.

Any suggestions and recommendations gratel received. Be gently though, all I
know about Excel has been self taught or from the initernet!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Suggestions on what function - staff record hours sheet

=SUMIF(A9:Z9,"AL",A10:Z10)


"TraceyJ" wrote:

Well I thought I had it sussed but now I am not quite sure.

I am trying to devise a staff record sheet that summarises hours taken off
for annual leave, (AL), sick leave, (SK) study leave, (SD) and compassionate
leave, (CL).

I have the months detailed down in column A and each month has two rows. One
row is for the absence code (AL, SK, etc) and the cell immediately below this
code, there will be the hours that relates to this absence. Just to be
arkward, the times can vary greatly. I could do it fine if the hours were
always the same!

Further down the sheet I have summarised each months' absences according to
code but I need to instruct Excel to know which ones to count and when.
Therein lies the challenge.

The code that I have used so far is
=COUNTIF(A9,"AL")*A10+COUNTIF(B9."AL)*B10+COUNTIF( C9,"AL")*C10 etc etc etc
until the month is then completed. I then redo the same formula for the other
absence codes.

This obviously takes a long time to do and then sometimes it doesn't seem to
work and just gives #### in the total box. This might be just after the
formula has worked so I know it's not a trying error or a missing character.
Strangely though, I have copied to the formula and pasted it into the totals
box for the other months and it seems to work.

Any suggestions and recommendations gratel received. Be gently though, all I
know about Excel has been self taught or from the initernet!

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
time sheet needed to total weekly hours worked by staff cravingmad Excel Discussion (Misc queries) 1 March 3rd 09 04:57 PM
Excel Staff Hours Worksheet... DB Excel Discussion (Misc queries) 1 April 9th 07 08:08 PM
how many staff have 1 skill, how many staff have 2 skills, etc. ch90 Excel Discussion (Misc queries) 3 October 27th 05 03:52 PM
I can't navigate my sheet with my arrow keys. suggestions? Mark Excel Discussion (Misc queries) 1 May 2nd 05 08:45 PM
time-sheet record with over 24 hours kkwaters New Users to Excel 2 December 16th 04 06:24 AM


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