t0ny84
Board Regular
- Joined
- Jul 6, 2020
- Messages
- 205
- Office Version
- 365
- 2016
- 2013
- Platform
- Windows
- Mobile
- Web
Hi,
I am looking to import the details from an iCal (ICS File) into a table in Excel, I was wondering if anyone has experience doing this or could point me in the right direction. Ideally I would only want to import the Name and Date of the Public Holiday.
The file is located on the NSW Australia Public Holidays Website and includes details of all Public Holidays for NSW Australia.
Based on the contents of the ICS (below) I need to find a way to scrape the two following lines for each Public Holiday.
DTSTART;VALUE=DATE:20201225
SUMMARY:Christmas Day
For the above, it would copy into a table as:
Date | Summary
25/12/2020 | Christmas Day
Thanks in advance.
t0ny84
I am looking to import the details from an iCal (ICS File) into a table in Excel, I was wondering if anyone has experience doing this or could point me in the right direction. Ideally I would only want to import the Name and Date of the Public Holiday.
The file is located on the NSW Australia Public Holidays Website and includes details of all Public Holidays for NSW Australia.
Based on the contents of the ICS (below) I need to find a way to scrape the two following lines for each Public Holiday.
DTSTART;VALUE=DATE:20201225
SUMMARY:Christmas Day
For the above, it would copy into a table as:
Date | Summary
25/12/2020 | Christmas Day
Rich (BB code):
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ical.marudot.com//iCal Event Maker
X-WR-CALNAME:NSW public holiday dates
NAME:NSW public holiday dates
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Australia/Sydney
TZURL:http://tzurl.org/zoneinfo-outlook/Australia/Sydney
X-LIC-LOCATION:Australia/Sydney
BEGIN:STANDARD
TZOFFSETFROM:+1100
TZOFFSETTO:+1000
TZNAME:AEST
DTSTART:19700405T030000
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETFROM:+1000
TZOFFSETTO:+1100
TZNAME:AEDT
DTSTART:19701004T020000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=1SU
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-781600677@marudot.com
DTSTART;VALUE=DATE:20201225
DTEND;VALUE=DATE:20201226
SUMMARY:Christmas Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-395273742@marudot.com
DTSTART;VALUE=DATE:20201226
DTEND;VALUE=DATE:20201227
SUMMARY:Boxing Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-428954385@marudot.com
DTSTART;VALUE=DATE:20201228
DTEND;VALUE=DATE:20201229
SUMMARY:Additional Day
DESCRIPTION:As Boxing Day falls on Saturday\, this is an additional public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-725989500@marudot.com
DTSTART;VALUE=DATE:20210101
DTEND;VALUE=DATE:20210102
SUMMARY:New Year's Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-293439041@marudot.com
DTSTART;VALUE=DATE:20210126
DTEND;VALUE=DATE:20210127
SUMMARY:Australia Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-995897171@marudot.com
DTSTART;VALUE=DATE:20210402
DTEND;VALUE=DATE:20210403
SUMMARY:Good Friday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-456483595@marudot.com
DTSTART;VALUE=DATE:20210403
DTEND;VALUE=DATE:20210404
SUMMARY:Easter Saturday
DESCRIPTION:- the Saturday following Good Friday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-777595054@marudot.com
DTSTART;VALUE=DATE:20210404
DTEND;VALUE=DATE:20210405
SUMMARY:Easter Sunday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1936065893@marudot.com
DTSTART;VALUE=DATE:20210405
DTEND;VALUE=DATE:20210406
SUMMARY:Easter Monday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1659469736@marudot.com
DTSTART;VALUE=DATE:20210425
DTEND;VALUE=DATE:20210426
SUMMARY:ANZAC Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-179294136@marudot.com
DTSTART;VALUE=DATE:20210614
DTEND;VALUE=DATE:20210615
SUMMARY:Queen's Birthday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-2056790112@marudot.com
DTSTART;VALUE=DATE:20210802
DTEND;VALUE=DATE:20210803
SUMMARY:Bank Holiday
DESCRIPTION:Retail bank branches and certain financial institutions are required to remain closed on the first Monday in August (Bank Holiday) unless otherwise exempt - see Part 3A of the Retail Trading Act 2008. ‘Bank Holiday’ is included in this list because it has implications for the staffing of these institutions. See the Banks and Financial Institutions page of the Fair Trading website. Bank Holiday is not a declared public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1145302066@marudot.com
DTSTART;VALUE=DATE:20211004
DTEND;VALUE=DATE:20211005
SUMMARY:Labour Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-185041632@marudot.com
DTSTART;VALUE=DATE:20211225
DTEND;VALUE=DATE:20211226
SUMMARY:Christmas Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-468483448@marudot.com
DTSTART;VALUE=DATE:20211226
DTEND;VALUE=DATE:20211227
SUMMARY:Boxing Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-427839876@marudot.com
DTSTART;VALUE=DATE:20211227
DTEND;VALUE=DATE:20211228
SUMMARY:Additional Day
DESCRIPTION:As Christmas Day falls on Saturday\, this is an additional public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-2077004861@marudot.com
DTSTART;VALUE=DATE:20211228
DTEND;VALUE=DATE:20211229
SUMMARY:Additional Day
DESCRIPTION:As Boxing Day falls on Sunday\, this is an additional public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1370757825@marudot.com
DTSTART;VALUE=DATE:20220101
DTEND;VALUE=DATE:20220102
SUMMARY:New Year's Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-757364720@marudot.com
DTSTART;VALUE=DATE:20220103
DTEND;VALUE=DATE:20220104
SUMMARY:Additional Day
DESCRIPTION:As New Year's Day falls on Saturday\, this is an additional public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-256695186@marudot.com
DTSTART;VALUE=DATE:20220126
DTEND;VALUE=DATE:20220127
SUMMARY:Australia Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1684387592@marudot.com
DTSTART;VALUE=DATE:20220415
DTEND;VALUE=DATE:20220416
SUMMARY:Good Friday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1708860534@marudot.com
DTSTART;VALUE=DATE:20220416
DTEND;VALUE=DATE:20220417
SUMMARY:Easter Saturday
DESCRIPTION:- the Saturday following Good Friday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-257120327@marudot.com
DTSTART;VALUE=DATE:20220417
DTEND;VALUE=DATE:20220418
SUMMARY:Easter Sunday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1691757165@marudot.com
DTSTART;VALUE=DATE:20220418
DTEND;VALUE=DATE:20220419
SUMMARY:Easter Monday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1556148394@marudot.com
DTSTART;VALUE=DATE:20220425
DTEND;VALUE=DATE:20220426
SUMMARY:ANZAC Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-918900773@marudot.com
DTSTART;VALUE=DATE:20220613
DTEND;VALUE=DATE:20220614
SUMMARY:Queen's Birthday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1767196981@marudot.com
DTSTART;VALUE=DATE:20220801
DTEND;VALUE=DATE:20220802
SUMMARY:Bank Holiday
DESCRIPTION:Retail bank branches and certain financial institutions are required to remain closed on the first Monday in August (Bank Holiday) unless otherwise exempt - see Part 3A of the Retail Trading Act 2008. ‘Bank Holiday’ is included in this list because it has implications for the staffing of these institutions. See the Banks and Financial Institutions page of the Fair Trading website. Bank Holiday is not a declared public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1718037395@marudot.com
DTSTART;VALUE=DATE:20221003
DTEND;VALUE=DATE:20221004
SUMMARY:Labour Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-7747573@marudot.com
DTSTART;VALUE=DATE:20221225
DTEND;VALUE=DATE:20221226
SUMMARY:Christmas Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1882405611@marudot.com
DTSTART;VALUE=DATE:20221226
DTEND;VALUE=DATE:20221227
SUMMARY:Boxing Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1452519513@marudot.com
DTSTART;VALUE=DATE:20221227
DTEND;VALUE=DATE:20221228
SUMMARY:Additional Day
DESCRIPTION:As Christmas Day falls on Sunday\, this is an additional public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1174402696@marudot.com
DTSTART;VALUE=DATE:20230101
DTEND;VALUE=DATE:20230102
SUMMARY:New Year's Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1790900273@marudot.com
DTSTART;VALUE=DATE:20230102
DTEND;VALUE=DATE:20230103
SUMMARY:Additional Day
DESCRIPTION:As New Year's Day falls on Sunday\, this is an additional public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-892064899@marudot.com
DTSTART;VALUE=DATE:20230126
DTEND;VALUE=DATE:20230127
SUMMARY:Australia Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1597219656@marudot.com
DTSTART;VALUE=DATE:20230407
DTEND;VALUE=DATE:20230408
SUMMARY:Good Friday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1705271616@marudot.com
DTSTART;VALUE=DATE:20230408
DTEND;VALUE=DATE:20230409
SUMMARY:Easter Saturday
DESCRIPTION:- the Saturday following Good Friday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1623789798@marudot.com
DTSTART;VALUE=DATE:20230409
DTEND;VALUE=DATE:20230410
SUMMARY:Easter Sunday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1609533851@marudot.com
DTSTART;VALUE=DATE:20230410
DTEND;VALUE=DATE:20230411
SUMMARY:Easter Monday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1492196921@marudot.com
DTSTART;VALUE=DATE:20230425
DTEND;VALUE=DATE:20230426
SUMMARY:ANZAC Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-744901272@marudot.com
DTSTART;VALUE=DATE:20230612
DTEND;VALUE=DATE:20230613
SUMMARY:Queen's Birthday
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-922025176@marudot.com
DTSTART;VALUE=DATE:20230807
DTEND;VALUE=DATE:20230808
SUMMARY:Bank Holiday
DESCRIPTION:Retail bank branches and certain financial institutions are required to remain closed on the first Monday in August (Bank Holiday) unless otherwise exempt - see Part 3A of the Retail Trading Act 2008. ‘Bank Holiday’ is included in this list because it has implications for the staffing of these institutions. See the Banks and Financial Institutions page of the Fair Trading website. Bank Holiday is not a declared public holiday.
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1097614707@marudot.com
DTSTART;VALUE=DATE:20231002
DTEND;VALUE=DATE:20231003
SUMMARY:Labour Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1434512944@marudot.com
DTSTART;VALUE=DATE:20231225
DTEND;VALUE=DATE:20231226
SUMMARY:Christmas Day
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20201218T035645Z
UID:20201218T035645Z-1804943850@marudot.com
DTSTART;VALUE=DATE:20231226
DTEND;VALUE=DATE:20231227
SUMMARY:Boxing Day
END:VEVENT
END:VCALENDAR
Thanks in advance.
t0ny84