Determining Status from a date range

mattmickle

Board Regular
Joined
Nov 17, 2010
Messages
81
Working with some data and I'm having a tough time working through a formula.

Two Individuals:
EMP Start End Program Start End Program
123 1/1/16 12/31/16 Program A 9/11/16 12/31/16 Program B
456 1/1/16 12/31/16 Program A 6/20/16 12/31/16 Program C

So each person was offered Program A on 1/1/16, but each started a different program later in the year.
I need to be able to break it up so that I can show:

EMP JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV
123 ProA ProA ProA ProA ProA ProA ProA ProA ProB ProB ProB
456 ProA ProA ProA ProA ProA ProC ProC ProC ProC ProC ProC


Does this make sense?
SO the formula needs to look at each date range, determine which months it's valid for, while also looking at a second, or third, or fourth date range to determine if a new program started.
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Working with some data and I'm having a tough time working through a formula.
Two Individuals:
EMP Start End Program Start End Program
123 1/1/16 12/31/16 Program A 9/11/16 12/31/16 Program B
456 1/1/16 12/31/16 Program A 6/20/16 12/31/16 Program C
So each person was offered Program A on 1/1/16, but each started a different program later in the year.
I need to be able to break it up so that I can show:
EMP JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV
123 ProA ProA ProA ProA ProA ProA ProA ProA ProB ProB ProB
456 ProA ProA ProA ProA ProA ProC ProC ProC ProC ProC ProC
Does this make sense?
SO the formula needs to look at each date range, determine which months it's valid for, while also looking at a second, or third, or fourth date range to determine if a new program started.
col Ncol O
empstartendprogramstartendprogram
12301/01/201631/12/2016A11/09/201631/12/2016B01/01/201610/09/201611/09/201631/12/2016AABBrow 26
45601/01/201631/12/2016A20/06/201631/12/2016C01/01/201619/06/201620/06/201631/12/2016AACC
emp01/01/201601/02/201601/03/201601/04/201601/05/201601/06/201601/07/201601/08/201601/09/201601/10/201601/11/201601/12/201601/01/2017row 32
123AAAAAAAAABBBB
formula giving A under 1/1/16 is
=IF(AND(B32>=$I26,B32<=$J26),$N26,$O26)
the helper columns are automatically calculated

<colgroup><col><col span="2"><col><col span="2"><col span="2"><col span="4"><col span="6"></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,334
Messages
6,124,325
Members
449,154
Latest member
pollardxlsm

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top