ritesh_akh
New Member
- Joined
- May 3, 2011
- Messages
- 11
Hi,
Please help me to get a code for the following purpose. I have names in column A from 1 to 8000 and have a number of excel with the same type. I want to split the names in the following format:
If the name is of two words then it should split the name such that the first name goes under the column name "First Name", say it to be column B and the Last name to go in the fourth column named as "Last Name" say it to be column D. NOTHING GOES IN COLUMN "C" as that is for "Middle Name".
Eg:
Column A1 - Sam Jose
Column B1 - Sam
Column C1 - "**SHOULD BE BLANK**"
Column D1 - Jose
If the name is of Three words then:
first name in column B named "First Name"
Middle name in column C named "Middle Name"
Last Name in column D named as "Last Name"
Eg:
Column A1 - Sam Dave Jose
Column B1 - Sam
Column C1 - Dave
Column D1 - Jose
If the name is of four or more words then:
First Name in column B named "First Name"
Last Name in column D named as "Last Name"
Other words to go in column named "Extra1", "Extra2", "Extra3"
Eg:
Column A1 - Answers do not have Questions
Column B1 - Answers
Column C1 - "**SHOULD BE BLANK**"
Column D1 - Questions
Column E1 - do
Column F1 - not
Column G1 -have
Please Note:
Names to be split is in column A, column B be will contain only the "First Name", Column C will contain only the "middle name (If any)", column D will contain the last name and other words (for the names having more than 3 words) in column E, F, G...
Please help me on this.
Thanks in advance.
Please help me to get a code for the following purpose. I have names in column A from 1 to 8000 and have a number of excel with the same type. I want to split the names in the following format:
If the name is of two words then it should split the name such that the first name goes under the column name "First Name", say it to be column B and the Last name to go in the fourth column named as "Last Name" say it to be column D. NOTHING GOES IN COLUMN "C" as that is for "Middle Name".
Eg:
Column A1 - Sam Jose
Column B1 - Sam
Column C1 - "**SHOULD BE BLANK**"
Column D1 - Jose
If the name is of Three words then:
first name in column B named "First Name"
Middle name in column C named "Middle Name"
Last Name in column D named as "Last Name"
Eg:
Column A1 - Sam Dave Jose
Column B1 - Sam
Column C1 - Dave
Column D1 - Jose
If the name is of four or more words then:
First Name in column B named "First Name"
Last Name in column D named as "Last Name"
Other words to go in column named "Extra1", "Extra2", "Extra3"
Eg:
Column A1 - Answers do not have Questions
Column B1 - Answers
Column C1 - "**SHOULD BE BLANK**"
Column D1 - Questions
Column E1 - do
Column F1 - not
Column G1 -have
Please Note:
Names to be split is in column A, column B be will contain only the "First Name", Column C will contain only the "middle name (If any)", column D will contain the last name and other words (for the names having more than 3 words) in column E, F, G...
Please help me on this.
Thanks in advance.