एक्सेल में प्रथम नाम और अंतिम नाम विभाजन
“Learn how to split surname and first name in excel using a formula . The first name or the surname can be of any length . 4 formulas have been used to achieve the results 1. Left Formula, 2. Right Formula 3. Len Formula 4. Find Formula
The Video above explains how Split Fist Name and Last Name In MS Excel. The Text below is from a Microsoft Excel Support Blog
Example 1: Separating Jeff and Smith
This example separates two components: first name and last name. A single space separates the two names.
Copy the cells in the table and paste into an Excel worksheet at cell A1. The formula you see on the left will be displayed for reference, while Excel will automatically convert the formula on the right into the appropriate result.
Hint Before you paste the data into the worksheet, set the column widths of columns A and B to 250.
|Jeff Smith||No middle name|
|Formula||Result (first name)|
|‘=LEFT(A2, SEARCH(” “,A2,1))||=LEFT(A2, SEARCH(” “,A2,1))|
|Formula||Result (last name)|
|‘=RIGHT(A2,LEN(A2)-SEARCH(” “,A2,1))||=RIGHT(A2,LEN(A2)-SEARCH(” “,A2,1))|
- First nameThe first name starts with the first character in the string (J) and ends at the fifth character (the space). The formula returns five characters in cell A2, starting from the left.
Use the SEARCH function to find the value for num_chars:
Search for the numeric position of the space in A2, starting from the left.
- Last nameThe last name starts at the space, five characters from the right, and ends at the last character on the right (h). The formula extracts five characters in A2, starting from the right.
Use the SEARCH and LEN functions to find the value for num_chars:
Search for the numeric position of the space in A2, starting from the left. (5)
- Count the total length of the text string, and then subtract the number of characters to the left of the first space, as found in step 1.