I figured it out.
The process I used just in case anyone had a similar problem is:
I had one excel sheet that used:
This indexed the exported data from Outlook to just input whatever that calendar had for the same Person and Date. The C:C collum in CalendarExport.xlsx is the data needed (the personal, vacation, etc).
I just made a separate formula for each person. (don't forget cntl+shift+enter)
While this gave the data I needed, it also gave much more. For example, if someone got a haircut it put "haircut" in the cell that corresponded with the person and the date of the haircut.
To remedy this, I made another sheet that filtered through this. This second sheet used:
This just looked for keywords in the cells that indexed the outlook export, and put the corresponding codes if true.
This allowed me to have a sheet with V's, P's, and Hd's and no other information. So, I had everything I needed.
In order to automate the data to go to the Calendar sheet, I just did a macros to copy it. I didn't want to have a formula on the main sheet to connect to this smaller sheet because the data is updated and refreshed every friday, so the data from the week before would be deleted if I used a formula to find the text needed for the cell.
To copy the data from the filtered calendar sheet and paste it as text (not as a formula) into the Main Calendar sheet, I used the following:
Due to how my master calendar is set up, I had to copy and paste in four separate chunks. But, no problem for me.
On the main sheet I put a button at the top corner to allow for that page to run the macros in order to update whenever.
I am still needing to work on automating the outlook export, but should not be very hard with some coding and google.
Good luck!
The process I used just in case anyone had a similar problem is:
I had one excel sheet that used:
Code:
=INDEX([CalendarExport.xlsx]Sheet1!$C:$C,MATCH("*first.last*"&C$3,[CalendarExport.xlsx]Sheet1!$A:$A&[nate.xlsx]Sheet1!$D:$D,0))
I just made a separate formula for each person. (don't forget cntl+shift+enter)
While this gave the data I needed, it also gave much more. For example, if someone got a haircut it put "haircut" in the cell that corresponded with the person and the date of the haircut.
To remedy this, I made another sheet that filtered through this. This second sheet used:
Code:
=IF(COUNTIF(C5,"**vacation**"),"V",IF(COUNTIF(C5,"**personal**"),"P",IF(COUNTIF(C5,"**half day**"),"Hd","")))
This allowed me to have a sheet with V's, P's, and Hd's and no other information. So, I had everything I needed.
In order to automate the data to go to the Calendar sheet, I just did a macros to copy it. I didn't want to have a formula on the main sheet to connect to this smaller sheet because the data is updated and refreshed every friday, so the data from the week before would be deleted if I used a formula to find the text needed for the cell.
To copy the data from the filtered calendar sheet and paste it as text (not as a formula) into the Main Calendar sheet, I used the following:
Code:
Sub UpdateCalendar()
'
'Update Calendar
'
'Jan to March
Sheets("Calendar(Mechanics)").Activate
ActiveSheet.Range("C16:BO23").Select
Selection.Copy
Sheets("2017").Select
Range("B7").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'April to June
Sheets("Calendar(Mechanics)").Activate
ActiveSheet.Range("BP16:EB23").Select
Selection.Copy
Sheets("2017").Select
Range("B19").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'July to September
Sheets("Calendar(Mechanics)").Activate
ActiveSheet.Range("EC16:GO23").Select
Selection.Copy
Sheets("2017").Select
Range("B31").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'October to December
Sheets("Calendar(Mechanics)").Activate
ActiveSheet.Range("GP16:JB23").Select
Selection.Copy
Sheets("2017").Select
Range("B43").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
On the main sheet I put a button at the top corner to allow for that page to run the macros in order to update whenever.
I am still needing to work on automating the outlook export, but should not be very hard with some coding and google.
Good luck!