Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 26
Default Substracting from oldest date

I am hoping that someone will be able to help with this one - any help would
be greatly appreciated.
I am wanting to calculate balances of leave accrued and leave taken by each
staff member with the leave taken being substracted from the oldest date of
accrued within the previou 12 months. If no leave is taken within 12 months
of the date accrued, then this accrued leave is "surrendered" (lost) eg.
Name Date Hrs Balance
Staff 1 taken 01/05/2008 8 2
Staff 1 accrued 01/02/008 10 10
Staff 2 taken 01/01/2008 8 0
Staff 2 accrued 01/12/2007 3 8
Staff 2 accrued 01/11/2007 5 5
Staff 1 accrued 01/01/2007 8 surrendered

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Substracting from oldest date

One alternative is a little bit change in the data structure and use of
simple formula like sumif. Follow these steps

1) Keep yearwise data in different sheets
2) Columns will be
Name Date Leave
3) In name column write name of staff as usual, date should also be as
usual. Levae accrued should be entered in + and leave taken should be entered
in -
4) Assuming aboe data is in range a1:c100
5) Now create an additional table at (say) e1 as follows
Name of staff (cell e1) Leave balance (cell f1)
wrie names of all staff from e2 to e3... and so on
write following formula in cell f2 (second row below leave balance column
=sumif($a$1:$a$100,$e2,$c$1:$c$100). Copy this formula from f3 to last
staff and you will get the result. at each date.





"Janelle S" wrote:

I am hoping that someone will be able to help with this one - any help would
be greatly appreciated.
I am wanting to calculate balances of leave accrued and leave taken by each
staff member with the leave taken being substracted from the oldest date of
accrued within the previou 12 months. If no leave is taken within 12 months
of the date accrued, then this accrued leave is "surrendered" (lost) eg.
Name Date Hrs Balance
Staff 1 taken 01/05/2008 8 2
Staff 1 accrued 01/02/008 10 10
Staff 2 taken 01/01/2008 8 0
Staff 2 accrued 01/12/2007 3 8
Staff 2 accrued 01/11/2007 5 5
Staff 1 accrued 01/01/2007 8 surrendered

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
Finding the oldest date in a column Robert Smith Excel Worksheet Functions 6 November 13th 07 12:56 AM
Find Oldest Date Qaspec Excel Discussion (Misc queries) 7 July 5th 07 09:02 PM
oldest date not completed Dreamstar_1961 Excel Worksheet Functions 7 April 2nd 07 01:46 PM
Special sort for oldest and newest date DTTODGG Excel Discussion (Misc queries) 1 October 11th 06 05:17 PM
Detecting Oldest Date On Spreadsheet Keiron James Keeble Excel Discussion (Misc queries) 3 January 19th 05 01:09 AM


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