INT takes a number and rounds it down. So if A1 was 15 then 15/12=1.25 rounded down would be 1.
MOD returns the remainder after a number is divided by a divisor (in this case, 12).
This is long division which I am sure most people have forgotten once you reach a certain age! Although understanding how it works isn’t completely neccessary it doesn’t hurt to. See this link for an explanation.
There comes a time, especially working in schools, where you have to add a lot of contacts and groups at once to Office 365.
This is where Powershell comes in. What would take you days through the Office 365 admin page will take you an hour or two using Powershell.
Preparing Contacts
The first thing you need to do is prepare a CSV for Powershell to pull contact data from. Each contact needs an email address and a name as follows:
ExternalEmailAddress
Name
FirstName
LastName
firstperson@gmail.com
John Smith
John
Smith
secondperson@hotmail.com
Jane Doe
Jane
Doe
Create the file in Excel and save it as a CSV file to your C:\ drive. It doesn’t have to be the C:\ drive but that just makes it clearer when dealing with file paths.
Connecting to Powershell
Now you need to connect to Exchange Online using a Powershell session but first you want to enable the running of scripts. Open Powershell and type:
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
Enter your Office 365 Admin details at the prompt. Then continue below.
You should now be connected to your Exchange Online account. Enter the following to import your Contacts CSV file. The below code makes the assumption that your first is in the C:\ drive and is called contacts.csv. Rename as appropriate.