Skip to main content

How to Use LEFT, MID, RIGHT, and FIND Functions in Excel

Excel’s LEFT, MID, RIGHT, and FIND functions are powerful tools for extracting specific parts of text strings from cells. They are particularly useful for parsing data, cleaning text, and creating dynamic formulas for data manipulation.

                                                Watch this video

1. LEFT Function

The LEFT function extracts a specific number of characters from the start (left) of a text string.

Syntax:

=LEFT(text, [num_chars])
  • text: The text string from which you want to extract characters.
  • num_chars (optional): The number of characters you want to extract. If omitted, Excel will return just the first character.

2. MID Function

The MID function extracts characters from the middle of a text string, starting at a specified position.

Syntax:

=MID(text, start_num, num_chars)
  • text: The text string from which you want to extract characters.
  • start_num: The position of the first character you want to extract.
  • num_chars: The number of characters to extract.



3. RIGHT Function

The RIGHT function extracts a specified number of characters from the end (right) of a text string.

Syntax:

=RIGHT(text, [num_chars])
  • text: The text string from which you want to extract characters.
  • num_chars (optional): The number of characters you want to extract from the right. If omitted, Excel will return the last character only.



4. FIND Function

The FIND function locates the position of a specific character or substring within a text string. This function is case-sensitive and returns an error if the substring is not found.

Syntax:

=FIND(find_text, within_text, [start_num])
  • find_text: The character or substring you want to locate.
  • within_text: The text string in which you want to search.
  • start_num (optional): The character position to start the search (default is 1).

Using Excel’s LEFT, MID, RIGHT, and FIND functions can significantly enhance your data extraction and text manipulation capabilities. Experiment with these functions to unlock powerful data insights and improve your data-cleaning efficiency!

Comments

Popular posts from this blog

How to Create Pie and Doughnut Charts in Excel

Creating charts in Excel can enhance your data presentation and make it easier to understand at a glance. Among the most popular chart types are pie and doughnut charts, which visually represent data portions as slices or rings. In this guide, I'll show you how to create both pie and doughnut charts in Excel, covering everything from setting up your data to customizing the look and feel of your charts. Watch this video Section 1: What Are Pie and Doughnut Charts? Pie Chart: A pie chart is a circular chart divided into slices to illustrate numerical proportions. Each slice represents a percentage of the whole, making pie charts perfect for showing data distributions. Doughnut Chart: A doughnut chart is similar to a pie chart but has a blank center. It’s great for displaying multiple series and comparing different sets of data within one chart. Section 2: Setting Up Your Data for a Pie Chart Before creating any chart, it’s crucial to format your data in a way Excel can interpret: ...

How to Create a Salary Sheet in Excel

Learn how to create a professional salary sheet in Excel with this step-by-step tutorial. Whether you're a beginner or looking to improve your Excel skills, this guide covers everything from setting up basic salary calculations to organizing deductions, allowances, and generating a clean, automated salary structure. Watch this video

Javascript এ একটি সংখ্যা বিজোড় বা জোড় কিনা তা কীভাবে check করবেন ?

  সংখ্যা পদ্ধতিতে যে কোন স্বাভাবিক সংখ্যাকে (2n + 1) আকারে প্রকাশ করা যায় তাকে বিজোড় সংখ্যা বলা হয় এবং সংখ্যাটিকে 2n আকারে প্রকাশ করা গেলে তাকে জোড় সংখ্যা বলে। অন্যভাবে বলা যায়, যে সংখ্যাগুলি 2 দ্বারা সম্পূর্ণরূপে বিভাজ্য (2 দ্বারা ভাগ করলে অবশিষ্ট 0 থাকে ) জোড় সংখ্যা হিসাবে পরিচিত এবং যেগুলি 2 দ্বারা ভাগ করলে একটি ভাগশেষ 1 রেখে যায় তাদের বিজোড় সংখ্যা বলা হয়। Enter a number: Check HTML (index.html): <!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <title>Even or Odd Checker</title>     <link rel="stylesheet" href="style.css"> </head> <body>     <div class="container">         <label for="numberInput">Enter a number:</label>         <input type="number" id="numb...