I apologize for letting this lag.
Due to more urgent matters arising, this took the back burner for a bit.
I'll test this and get back to you kacor.
:o)
Bartender_1
Main Topics
Browse All TopicsI have a spreadsheet that has a list of applicable dates in one column. (Say Column A, and there's a few years worth of dates.)
I have cell with a start date.
I have a cell with an end date.
I have a cell that calculates an accrual rate for holiday accrual.
I need a formula to put into Column B that will do the following. (Assume Cell B1)
Check to see if the date in Cell A1 falls between Start Date and End Date, and if so, show the accrual for that day. If not, show 0 instead.
In addition to this, a person could hold more than one position which means they could accrue holidays at a different rate. Example: they could hold a position for 50% of the time that accrues holiday time at %5.5, (because this position is 50% time, it would actually accrue at 2.75%) and hold a position for 25% of the time that accrues holday time at %11.54.(because this position is 25% time, it would actually accrue at 2.885%) And these different positions could have different start and end dates. So, if a person was employed with both positions during a day, their accrual should be 5.635% for that day.
There would be a seperate column for each position, and a seperate start/end date for each position, so after the formula, I would add all applicable accruals together to show proper accruals for a payperiod.
I know it's weird having each day listed, but I couldn't think of a way to eliminate weekends. (Holiday's don't accrue on weekends) so I've listed every day in Column A, and not included weekends. ~sighs~
So, hopefully this is clear. Ask any questions you need.
:o)
Bartender_1
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: kacorPosted on 2007-08-22 at 22:50:58ID: 19751808
The proposed solution allows max 3 positions same time (of course you can increase it) 2);1;0) 3);1;0) 4);1;0)
It uses columns A to G
Header:
Applicable Date Position1 Position2 Position3 Start Date End Date accrual rate for holiday
Formel in column B from cell B2
=IF(AND($A2>=$E$2;$A2<=$F$
Formel in column C from cell C2
=IF(AND($A2>=$E$3;$A2<=$F$
Formel in column C from cell C2
=IF(AND($A2>=$E$4;$A2<=$F$
Cells E2 and F2 contain start and end date for position 1
E3,F3 -> pos2; E4,F4 -> pos3
g2,g3,g4 -> accrual rate respectively
Assumed for applicable dates the range A2..A17 (of course you can extend according your needs)
Formel in B18: =SUM(B2:B17)*$G$2
Formel in C18: =SUM(C2:C17)*$G$3
Formel in D18: =SUM(D2:D17)*$G$4
and the sum for 3 positions: =SUM(B18:D18) you can insert where you need
with best regards
Janos