ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   reverse enties in a field (https://www.excelbanter.com/excel-discussion-misc-queries/38237-reverse-enties-field.html)

-lee

reverse enties in a field
 
we have an excel file with names and addresses in it.
The name filed contains both the last name then a comma and then the first
name all in one field.
Is there a way to automatically break this field apart into two seperate
fields so we can do better manipulation to the data?

Thanks

Lee

Karthik

Hi Lee

Here is an example.. You can use the formulas

Type the name is cell A1 (last, first) and then enter these formulas in

B1 =3DMID(A1,FIND(",",A1)+2,LEN(A1)=AD)
C1 =3DMID(A1,1,FIND(",",A1)-1)
If the name in cell A1 is last, first (without space after the symbol
"," ) then the formula in cell B1 will have to be


B1 =3DMID(A1,FIND(",",A1)+1,LEN(A1)=AD)


Now you can copy paste these two in any no. of rows...


Thanks=20
Karthik Bhat=20
Bangalore


RagDyer

Try <Data <Text To Columns
And post back with any questions.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"-lee" wrote in message
...
we have an excel file with names and addresses in it.
The name filed contains both the last name then a comma and then the first
name all in one field.
Is there a way to automatically break this field apart into two seperate
fields so we can do better manipulation to the data?

Thanks

Lee




All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com