*PROVIDING ACCURATE, RELIABLE AND STRAIGHT TO THE POINT KNOWLEDGE ABOUT DIFFERENT IT TOOLS EXPLAINED WITH PRACTICAL EXAMPLES*

#### CONTENTS

# EXCEL FUNCTIONS-trim

## INTRODUCTION

*TRIM function comes under the TEXT category in Excel.*

*Think of a scenario where you copy some text from one place to another or you are editing some long text where the spaces between any two words are random, how awkward would it look.*

*In big reports its not easy to proof read the text or data over and again in short period of time. That’s why many functions are provided in excel which looks simple but are very useful while handling large sized reports.*

*One of these function is TRIM FUNCTION which we are going to discuss here.*

* *

*TRIM FUNCTION REMOVES THE EXTRA SPACES BETWEEN TWO WORDS AND LEAVES ONLY ONE STANDARD SPACE AND NO SPACE BEFORE THE FIRST WORD AND AFTER THE LAST WORD.*

*By this , we can apply this function to very large text and this function ensures that there are no random spaces left.*

*e.g.*

* HELLO THERE! HOW ARE YOU DOING??*

*So this text looks bad when we look at it. There can be multiple reasons why the text is like that. So for the same we have TRIM function.*

* *

## PURPOSE OF TRIM FUNCTION IN EXCEL

**TRIM FUNCTION removes the extra spaces in the given text and keeps only one standard space.**

## PREREQUISITES TO LEARN TRIM FUNCTION

THERE ARE A FEW PREREQUISITES WHICH WILL ENABLE YOU TO UNDERSTAND THIS FUNCTION IN A BETTER WAY.

- Basic understanding of how to use a formula or function.
- Basic understanding of rows and columns in Excel.
- Some information about the financial terms is an advantage for the use of such formulas.
- Of course, Excel software.

## SYNTAX: TRIM FUNCTION

**The Syntax for the function is**

**=TRIM(TEXT STRING)**

**TEXT STRING **GIVEN TEXT

** **

## EXAMPLE:TRIM FUNCTION IN EXCEL

### DATA SAMPLE

Here we take an example to show how the Trim Function works.

Let us take the same line from the introduction and try our latest learnt function i.e. Trim Function in Microsoft Excel.

*HELLO THERE! HOW ARE YOU DOING??*

* *

### STEPS TO USE TRIM FUNCTION

The text having random spaces has been taken for the example.

We can see that there are some irregular spacing in the line. So we will use the function TRIM to remove those spaces.

The formula used is

=TRIM(D9)

The text is stored in D9 which needs to be corrected. The output is shown in E9.

OTHER WAYS TO REACH THIS ARTICLE

## TRIM FUNCTION, REMOVE SPACE BETWEEN WORDS, TRIM FUNCTION EXAMPLE

YOU MAY LIKE

- EXCEL-FUNCTION-CHAR
- EXCEL-FUNCTION-OR
- FUNCTION-AND
- FOR MORE ARTICLES, CLICK EXCEL OR TYPE IN SEARCH BELOW.