The LEFT() function returns a specified number of characters from a string, starting from the left-hand side.

In this tutorial:

  1. Syntax
  2. Example
  3. Next steps
Required knowledge:

1. Syntax

=LEFT(text,num_chars)

text is a reference to the cell containing the text string (or a literal text string).

num_chars is the number of characters to be returned

Returns a string.

2. Example

A common task for a teacher is to create class lists. The requirements for how student names are represented change and sometimes we want the students’ initials and not their full first name.

Using Excel's LEFT() function.
Using Excel’s LEFT() function.

=LEFT(D2,1)

3. Next steps

To finish the above tasks, we would join the surname and the initial separated by a comma and a space in cell F2:

=CONCAT(C2,", ",E2)

Go to Using Excel’s CONCATENATE() function to learn more about this solution.


References:

By MisterFoxOnline

Mister Fox AKA @MisterFoxOnline is an ICT, IT and CAT Teacher who has just finished training as a Young Engineers instructor. He has a passion for technology and loves to find solutions to problems using the skills he has learned in the course of his IT career.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.