Creating a Calendar

GerryBriant

New Member
Joined
Jan 15, 2018
Messages
16
My conundrum is..
On sheet 1, I have a 2 columns (A & B) containing multiple dates.
Column A' is 'Task start date' & Column 'B' is 'Task end date'.
On sheet 2, Row 1 contains incremental dates.
The outcome I am trying to work out is
Sheet 1 start date (A2) = 01/01/2018, end date (B2) = 03/01/18
Sheet 2 I would expect (or am hoping) to see the following against the column dates
A1 is 01/01/2018, & A2 = 1, B1 is 02/01/2018, & B2 = 1, C1 is 03/01/208, & C2 =1, D1 is 04/01/2018 & D2 = 0 (or blank), E1 is 05/01/2018 & E2 = 0 (or blank) etc.
PS date formats are UK
Any suggestions or guidance?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I have a 2 columns (A & B) containing multiple dates.

Hi, welcome to the forum!

It's not clear (to me at least) what happens when there are multiple dates, but based on the single row example that you laid out - here is one option.


Excel 2013/2016
ABCDEF
101/01/201802/01/201803/01/201804/01/201805/01/201806/01/2018
2111000
Sheet2
Cell Formulas
RangeFormula
A2=0+AND(Sheet1!$A$2<=A$1,Sheet1!$B$2>=A$1)



Excel 2013/2016
AB
1Task StartTask End
201/01/201803/01/2018
Sheet1
 
Upvote 0
many thanks for the greeting & suggested help but maybe I wasn't to clear...
Sheet 1 contains a range of dates... '=0+AND(Sheet1!$A$2:$A$1000<=A$1,Sheet1!$B$2:$B$1000>=A$1)' doesn't seem to want to work.
Activity Start DateActivity End Date
01/01/1803/01/18
01/02/1803/05/18
01/01/1803/02/18

<tbody>
</tbody><colgroup><col><col></colgroup>
 
Upvote 0
Thanks FormR,
I would expect to see on sheet 2 (the calendar range) to be populated with '1' till 03/05/18 & zero against 04/05/18 onwards.
 
Upvote 0
Thanks FormR,
I would expect to see on sheet 2 (the calendar range) to be populated with '1' till 03/05/18 & zero against 04/05/18 onwards.

OK - you could try:


Excel 2013/2016
ABCDEF
101/01/201802/01/201803/01/201804/01/201805/01/201806/01/2018
2111111
Sheet2
Cell Formulas
RangeFormula
A2=0+(COUNTIFS(Sheet1!$A:$A,"<="&A$1,Sheet1!$B:$B,">="&A$1)>0)
 
Upvote 0
I am confused about the use of ""& in a formulae though!!

Hi, criteria part of the COUNTIFS() function is expecting a string - the ampersand character is used to concatenate the "<=" with the date that is in cell above to create that string.
 
Upvote 0
Thank You FormR,
I have incorporated your suggestion in a nested formulae (to select against a employee - =SUM(IF(Sheet1!$A:$A=$A6,(0+(COUNTIFS(Sheet1!$D:$D,"<="&H$3,Sheet1!$E:$E,">="&H$3)>0)))) but I am not getting the expected result...

Sheet1
Resource
(Select from Dropdown)
Activity Start DateActivity End Date
A. Gibbs01/01/1803/01/18

<tbody>
</tbody><colgroup><col><col><col></colgroup>
Sheet2

BHTueWedThuFriSatSunMon
Employee0102030405060708
A. Bugg33333330
A. Edwards11111110
A. Gibbs11111110

<tbody>
</tbody><colgroup><col><col><col span="7"></colgroup>
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,755
Members
448,989
Latest member
mariah3

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