Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
opos
 
Posts: n/a
Default Tracking annual leave


Hi hope you can help. I have a table listing the attendance of workers.
Their attendance is logged using a series of codes, 1 for example
showing they turned up for work. There is another "PH" (public holiday
Leave which is inserted in their row if they take a PH leave day during
that month.

Each person has Ph Leave days allocatted and what I need to be able to
do is to be able to list down the dates someone takes a PH leave day in
their PH leave table, with each date listed below eachother.

Hope I have explained this ok and would appreciate all and any help.

don


--
opos
------------------------------------------------------------------------
opos's Profile: http://www.excelforum.com/member.php...o&userid=26260
View this thread: http://www.excelforum.com/showthread...hreadid=395557

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Done,

Try this formula

=IF(ISERROR(TRANSPOSE(SMALL(IF($B$2:$AH$2=A10,COLU MN(B2:AH2)-1,""),COLUMN(B2
:AH2)-1))),"",INDEX($B$1:$AH$1,TRANSPOSE(SMALL(IF($B$2:$ AH$2=A10,COLUMN(B2:A
H2)-1,""),COLUMN(B2:AH2)-1))))

Put PH in A10, then select the maximum number of cells per leave, hit F2,
enter the formula. It is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"opos" wrote in message
...

Hi hope you can help. I have a table listing the attendance of workers.
Their attendance is logged using a series of codes, 1 for example
showing they turned up for work. There is another "PH" (public holiday
Leave which is inserted in their row if they take a PH leave day during
that month.

Each person has Ph Leave days allocatted and what I need to be able to
do is to be able to list down the dates someone takes a PH leave day in
their PH leave table, with each date listed below eachother.

Hope I have explained this ok and would appreciate all and any help.

don


--
opos
------------------------------------------------------------------------
opos's Profile:

http://www.excelforum.com/member.php...o&userid=26260
View this thread: http://www.excelforum.com/showthread...hreadid=395557



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

I forgot to mention that my assumptions were

- the codes are in B2:AH2
- the dates are in B1:AH1

adjust to suit.

If your data is vertical rather than horizontal, post back, the formula
needs a tweak.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Bob Phillips" wrote in message
...
Done,

Try this formula


=IF(ISERROR(TRANSPOSE(SMALL(IF($B$2:$AH$2=A10,COLU MN(B2:AH2)-1,""),COLUMN(B2

:AH2)-1))),"",INDEX($B$1:$AH$1,TRANSPOSE(SMALL(IF($B$2:$ AH$2=A10,COLUMN(B2:A
H2)-1,""),COLUMN(B2:AH2)-1))))

Put PH in A10, then select the maximum number of cells per leave, hit F2,
enter the formula. It is an array formula, so commit with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"opos" wrote in

message
...

Hi hope you can help. I have a table listing the attendance of workers.
Their attendance is logged using a series of codes, 1 for example
showing they turned up for work. There is another "PH" (public holiday
Leave which is inserted in their row if they take a PH leave day during
that month.

Each person has Ph Leave days allocatted and what I need to be able to
do is to be able to list down the dates someone takes a PH leave day in
their PH leave table, with each date listed below eachother.

Hope I have explained this ok and would appreciate all and any help.

don


--
opos
------------------------------------------------------------------------
opos's Profile:

http://www.excelforum.com/member.php...o&userid=26260
View this thread:

http://www.excelforum.com/showthread...hreadid=395557





  #4   Report Post  
opos
 
Posts: n/a
Default


Thank you Bob! Tried this out as I think you suggested but dates are
not being shown correctly.

I chose 2,3,6,10/7/05 as ph days but formula returns 2,4,8,13/7/05 any
ideas?

I did add an absolute to the A10 refrences! have I executed this
wrongly?

Regards

Don


--
opos
------------------------------------------------------------------------
opos's Profile: http://www.excelforum.com/member.php...o&userid=26260
View this thread: http://www.excelforum.com/showthread...hreadid=395557

  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

Post with some sample data , cell references and cell data. Make sure it is
clear so we can see what is where as the newsgroups are always the clearest.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"opos" wrote in message
...

Thank you Bob! Tried this out as I think you suggested but dates are
not being shown correctly.

I chose 2,3,6,10/7/05 as ph days but formula returns 2,4,8,13/7/05 any
ideas?

I did add an absolute to the A10 refrences! have I executed this
wrongly?

Regards

Don


--
opos
------------------------------------------------------------------------
opos's Profile:

http://www.excelforum.com/member.php...o&userid=26260
View this thread: http://www.excelforum.com/showthread...hreadid=395557





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
Effective Annual Interest Rate John Excel Worksheet Functions 4 April 4th 23 12:45 PM
employee annual sick leave tracker with hours owing not used Melanie Excel Discussion (Misc queries) 0 July 21st 05 06:33 AM
Referencing a newly created worksheet Charyn Excel Worksheet Functions 2 May 2nd 05 04:13 AM
annual leave planner for approx 100 staff members wally Excel Discussion (Misc queries) 1 March 22nd 05 11:04 AM
How do you calc half day annual leave on a xls spread sheet using. RGayle_Imperial Excel Worksheet Functions 5 March 8th 05 08:34 PM


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