...
- Position of a character within a string
InStr([Project Manager Name], ",")
This formula displays the position of the first comma it can find in the Project Manager Name column.
If the character is not found, it will display a 0.
To make this formula work, replace the field in orange with the column name specific to the report you are working with. Replace the character in pink with the character(s) you are looking for.
- Length of a string
Len([Project Manager Name])
This formula displays the length of string that is displayed in the Project Manager Name field.
To make this formula work, replace the field in orange with the column name specific to the report you are working with.
- Display the last x number of characters from a given string
Right([Project Manager Name], 4)
This formula displays the last 4 characters from the Project Manager Name column.
To make this formula work, replace the field in orange with the column name specific to the report you are working with. Replace the number in pink with the number of characters you want displayed. "Right" can be replaced with "Left" if you want to display characters from the front of the field instead of the characters from the end of the field.
- Display the length of a portion of a string
Len([Project Manager Name]) - InStr([Project Manager Name], ",") - 1
This formula calculates the length of the first name portion of the "Project Manager Name" column which is formatted as {last name}, {first name} {middle init}.
The "-1" portion is needed in this particular formula because there is a space between the comma and the first name. If you don't have a space, just remove the "-1" part of the formula.
To make this formula work, replace the field in orange with the column name specific to the report you are working with. Replace the character in pink with whatever the separator character is that you are looking for.
- Display a portion of a string
Right([Project Manager Name], (Len([Project Manager Name]) - InStr([Project Manager Name], ",") - 1))
This formula display the first name portion of the "Project Manager Name" column which is formatted as {last name}, {first name} {middle init}.
The "-1" portion is needed in this particular formula because there is a space between the comma and the first name. If you don't have a space, just remove the "-1" part of the formula.
To make this formula work, replace the field in orange with the column name specific to the report you are working with. Replace the character in pink with whatever the separator character is that you are looking for.
- Display numeric as text in order to create formula
- CStr([Costcode])
- This formula will display the "Costcode" as a text
- Combine 2 columns into 1 column
- Column+ ","+Column