Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Substracting from oldest date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Janelle S - 18 May 2008 03:44 GMT
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
Prashant Runwal - 18 May 2008 11:39 GMT
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.

> I am hoping that someone will be able to help with this one - any help would
> be greatly appreciated.
[quoted text clipped - 9 lines]
> Staff 2 accrued       01/11/2007             5                    5
> Staff 1 accrued      01/01/2007              8                    surrendered
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.