Populate Calender

windoz

New Member
Joined
May 21, 2014
Messages
13
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi,

I'm confused about how I should approach the following problem; (I did think of using index, but this messes up when I drag to replicate the formula)

I have a calendar this should list the absences which will be pulled from sheet 2, however the data will change on a daily basis, and some even have over 300 staff in the lists.


1. How can I populate the following layout which shows the absent code in the cell between staff and date ?
2. How can I automatically update any extra days which the calendar extends to ?

Sheet1
01/09/2020​
02/09/2020​
03/09/2020​
04/09/2020​
05/09/2020​
06/09/2020​
07/09/2020​
08/09/2020​
09/09/2020​
10/09/2020​
11/09/2020​
12/09/2020​
13/09/2020​
Staff 1
Staff 2
Staff 3
Staff 4
Staff 5
Staff 6
Staff 7
Staff 8
Staff 9
Staff 10
Staff 11
Staff 12


Sheet 2
Staff NameAddressDate AbsentAbsent CodeSite
Staff 11 London
02/09/2020​
SA
Staff 22 Manchester
11/09/2020​
SB
Staff 33 Birmingham
16/09/2020​
SC
Staff 44 Newcastle
21/09/2020​
SD
Staff 55 North West
07/09/2020​
SE
Staff 66 North East
30/09/2020​
SB
Staff 77 South EastC
Staff 88 South WestD
Staff 99 EnglandE
Staff 1010 ScotlandB
Staff 1111 WalesC
Staff 1212 SomewhereD
Staff 11 London
25/09/2020​
SA
Staff 44 Newcastle
01/10/2020​
SD


Please if someone can advise or point me in the right direction I would appreciate this.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
 
Upvote 0
Hi Fluff,

I've updated my account details, thank you.

I'm using Excel 2016 on a Windows Desktop/Laptop.

Thank you.
 
Upvote 0
Ok, thanks for that.
How about
+Fluff v2.xlsm
ABCDEFGHIJKLM
109/01/202009/02/202009/03/202009/04/202009/05/202009/06/202009/07/202009/08/202009/09/202009/10/202009/11/202009/12/2020
2Staff 1 S          
3Staff 2          S 
4Staff 3            
5Staff 4            
6Staff 5      S     
7Staff 6            
8Staff 7            
9Staff 8            
10Staff 9            
11Staff 10            
12Staff 11            
13Staff 12            
Sheet1
Cell Formulas
RangeFormula
B2:M13B2=IFERROR(INDEX(Sheet2!$D$2:$D$100,MATCH($A2&"|"&B$1,Sheet2!$A$2:$A$100&"|"&Sheet2!$C$2:$C$100,0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Amazing!

This has saved me hours worth of work. I now need to look into array formulas!!

Thank you!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,577
Members
449,039
Latest member
Arbind kumar

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