Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Separate Text from a cell by space into other cells


How i can separate Text from Cell into other cell by space
for example
Columne A Column B Column C Column D

Mr. Muhammad Mr. Muhammad Sajjad
Sajjad

How can i do this by using excel function
--
Sajjad
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Separate Text from a cell by space into other cells

Hi,

Data|Text to columns
Select delimited
Next
Check 'Space'
Finish

Mike

"Sajjad" wrote:


How i can separate Text from Cell into other cell by space
for example
Columne A Column B Column C Column D

Mr. Muhammad Mr. Muhammad Sajjad
Sajjad

How can i do this by using excel function
--
Sajjad

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Separate Text from a cell by space into other cells

Suggest that you try Data Text to Columns functionality
Select the source col*, then click Data Text to Columns
Choose Delimited Check "Space" Finish
*do ensure that adjacent cols to the right are empty first
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"Sajjad" wrote:
How i can separate Text from Cell into other cell by space
for example
Columne A Column B Column C Column D

Mr. Muhammad Mr. Muhammad Sajjad
Sajjad

How can i do this by using excel function

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Separate Text from a cell by space into other cells

But i have to da this every time and have to be very carefull about spaces in
different rows, i have to do this work thousand of rows (Around 36000 rows)

if some formula help me
--
Sajjad


"Max" wrote:

Suggest that you try Data Text to Columns functionality
Select the source col*, then click Data Text to Columns
Choose Delimited Check "Space" Finish
*do ensure that adjacent cols to the right are empty first
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"Sajjad" wrote:
How i can separate Text from Cell into other cell by space
for example
Columne A Column B Column C Column D

Mr. Muhammad Mr. Muhammad Sajjad
Sajjad

How can i do this by using excel function

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Separate Text from a cell by space into other cells

When Max said:
"Select the source col*, ...
*do ensure that adjacent cols to the right are empty first",
he meant select the COLUMN, not select an individual CELL (unless that is
the only cell you want to process).
You can either select the whole column, or select a range (within the
column) which covers all the thousands of rows which you wish to process.
--
David Biddulph

"Sajjad" wrote in message
...
But i have to da this every time and have to be very carefull about spaces
in
different rows, i have to do this work thousand of rows (Around 36000
rows)

if some formula help me
--
Sajjad


"Max" wrote:

Suggest that you try Data Text to Columns functionality
Select the source col*, then click Data Text to Columns
Choose Delimited Check "Space" Finish
*do ensure that adjacent cols to the right are empty first
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,000 Files:362 Subscribers:62
xdemechanik
---
"Sajjad" wrote:
How i can separate Text from Cell into other cell by space
for example
Columne A Column B Column C Column D

Mr. Muhammad Mr. Muhammad Sajjad
Sajjad

How can i do this by using excel function





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Separate Text from a cell by space into other cells

On Wed, 15 Oct 2008 02:50:01 -0700, Sajjad
wrote:


How i can separate Text from Cell into other cell by space
for example
Columne A Column B Column C Column D

Mr. Muhammad Mr. Muhammad Sajjad
Sajjad

How can i do this by using excel function


The simplest method is to use the Data/Text to columns wizard; Delimited; with
<space as the delimiter.

There are formulas you could use, but much simpler to use a short User Defined
Function.

<alt-F11 opens the VB Editor.
Ensure your project is highlighted in the Project Explorer window, then
Insert/Module and paste the code below into the window that opens.

To use this, enter a formula of the type

=Prse($A1,Columns($A:A))

into an adjacent cell, and fill left as far as necessary. The COLUMNS function
will auto-increment so as to give appropriate "index" results into the string,
and should be entered as written.

The cell reference should be entered with the leading "$" so that when you fill
left, it will maintain the original column entry.

==================================
Option Explicit
Function Prse(str As String, Optional index As Long = 1, _
Optional separator As String = " ") As String
Dim aStr
aStr = Split(str, separator)
If index <= UBound(aStr) + 1 Then
Prse = aStr(index - 1)
End If
End Function
=====================================

--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How separate a Long text by first space? ldiaz Excel Discussion (Misc queries) 4 September 18th 08 11:01 PM
Listing Text From Separate Cells into One Cell Neil Pearce Excel Discussion (Misc queries) 2 September 11th 08 05:18 PM
separate text from one cell into 3 or more cells Sojo Excel Discussion (Misc queries) 4 September 20th 07 09:16 PM
How do I print two separate cells in a certain space on a form reioptions Excel Discussion (Misc queries) 2 August 26th 07 03:34 PM
How do I separate text without a space? trainer07 Excel Discussion (Misc queries) 6 March 7th 07 01:11 AM


All times are GMT +1. The time now is 09:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"