Proper & Trim to clean up data
PROPER(text)
Text is text enclosed in quotation marks, a formula that returns text, or a column reference containing the text you want to partially capitalize.
TRIM(text)
The TRIM function syntax has the following arguments:
Text Required. The text from which you want spaces removed.
Text is text enclosed in quotation marks, a formula that returns text, or a column reference containing the text you want to partially capitalize.
Trim Website: https://support.microsoft.com/en-us/office/trim-function-410388fa-c5df-49c6-b16c-9e5630b479f9
TRIM(text)
The TRIM function syntax has the following arguments:
Text Required. The text from which you want spaces removed.
As a Project Analyst, I used both the proper and trim functions to clean up payroll excel files of employee names. Not only is this important for making your work look clean, but also trim is essential for making sure your conditional formatting worked. If "John " (with a space) and "John" (no space) are checked for exact match using conditional formatting, it will not highlight either of these. This was important because the employee retention tax credit (ERTC) for 2020 summed up quarter by quarter to max out 10k of eligible gross pay used towards generating the credit per employee. The trim and then conditional formatting ensures that we follow this ERTC rule and prevents us from over generating the refundable credit per employee.
An example: John makes 1k in Q1, 4.5 k in Q2, and 6k in Q3, and 3k in Q4. The conditional formatting is a check I used to make sure that our excel file generated no credit in the Q4 excel tab because by Q3 John has already hit the 10k mark and went over.
An example: John makes 1k in Q1, 4.5 k in Q2, and 6k in Q3, and 3k in Q4. The conditional formatting is a check I used to make sure that our excel file generated no credit in the Q4 excel tab because by Q3 John has already hit the 10k mark and went over.
Below is example of using proper & trim; I also used Find & Replace (Ctrl+H) to remove the apostrophe beforehand.
Comments
Post a Comment