You are on page 1of 7

Date Operations

Formulas for working with dates


Note: All dates are formatted using TEXT() to avoid formatting issues that can occur due to differences
in formatting preferences

Date (input) 9/7/2021

Preferred Format yyyy-mm-dd


Days 7
Date plus a number of days 2021-09-14
Date plus a number of working days 2021-09-16
Date Format (YYYYMMDD) 20210907

Today 2021-09-07
Last week's dates (Monday, Friday, Sunday) 2021-08-30 2021-09-03 2021-09-05
Last month's dates (First and Last) 2021-08-01 2021-08-31
First / Last business day this month 2021-09-01 2021-09-30

Converts text to a date, in a locale-independent way


Inputs
Text 2008年12月31日 (水)
Separator 年 月 日
Format YMD
Calculated Values
1st token 2008 12月31日 (水) 12月31
2nd token 12
3rd token 31
Extracted Year 2008
Extracted Month 12
Extracted Day 31
Output
Output Date Format yyyy-mm-dd
Reformatted Date 2008-12-31
1
Text Operations
Formulas for working with text

Text (input) John C. Doe Text to the left


Trimmed John C. Doe John
Length 11 John
Upper case JOHN C. DOE
Lower case john c. doe John C.

Search John
Replace Mary
Result Mary C. Doe
Contains? 0

First Name John C.


Last Name Doe
Text to the right Extracted text
Doe C.
C. Doe
Doe John C.
Doe
John C. Doe
Number Operations
Formulas for working with numbers

Number (input) 3.141593


Cleaned Up 3.141593
Int 3
2 decimals 3.14

Converts text to a number, in a locale-independent way


Inputs
Text 123.456,78
Decimal Separator ,
Group Separator .
Output
Reformatted Number 123,456.78
File System Helpers
Formulas for working with file names and paths

Splits a full file name to get its folder and extension


Input
File name C:\temp\Untitled Document.docx
Output
File name Untitled Document.docx
File extension docx
File name no extension Untitled Document
Folder C:\temp\

Reformatted File Name: Untitled Document.docx


Project Notebook
Your Project Notebook is intended to use Excel formulas for data manipulation and calculations
have the freedom to do anything you can do in Excel.

How to use the Project Notebook


- Add a "Write Cell" activity to put the data you want to manipulate using an Excel formula into the "input cell" for your for
- Use the cell containining the formula directly in another activity to get the value produced by your formula.

How to save data


- The Project Notebook is intended for manipulating data when your automation is running. It is not intended as a place to
- To save data to an Excel file:
- Add a "Use Excel File" activity and choose your target Excel file.
- If you indicate a file name that doesn't exist, it will be created when you run your project.

You might also like