Skip to content

Instantly share code, notes, and snippets.

View cyphix333's full-sized avatar

Brett cyphix333

  • Perth, Australia
View GitHub Profile
@peteristhegreat
peteristhegreat / Outlook Column Formula
Last active August 17, 2022 16:32
Relative Date Time in Outlook and Excel (minutes ago, hours ago, days ago), like Gmail
Go to:
Ribbon > View > View Settings > Columns... > New Column...
Name: "Ago"
Type: Formula
Formula:
IIF( Now() - [Received] <1/24, MINUTE( Now()-[Received] ) & " minutes ago",IIF( Now()-[Received] <1, HOUR( Now()-[Received] ) & " hours ago",IIF( Now()-[Received] <31, INT( Now()-[Received] ) & " days ago", "months ago")))