#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default seperate field

I have the following field titled Path as part of a full query, that
has the following format of data, each row in the same format but different
text.

/Community & Government/Social & Human Services/Individual &
Family/Abuse/
Other rows in this field contain just

/Community & Government/Social & Human Services/

0r

/Community & Government

or
A/

I am looking to run the query so it returns only listings that contain the
four /../../../../ and then seperate the four into seperate fields.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default seperate field

You could use the length of the field as a check:
=LEN(A1)

or the length without slashes:
=LEN(SUBSTITUTE(A1,"/",""))

or the number of slashes:
=LEN(A1) - LEN(SUBSTITUTE(A1,"/",""))

Use Data | Text to Columns to split the field up

Regards

Trevor


"Finger Tips" wrote in message
...
I have the following field titled Path as part of a full query, that
has the following format of data, each row in the same format but
different
text.

/Community & Government/Social & Human Services/Individual &
Family/Abuse/
Other rows in this field contain just

/Community & Government/Social & Human Services/

0r

/Community & Government

or
A/

I am looking to run the query so it returns only listings that contain
the
four /../../../../ and then seperate the four into seperate fields.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default seperate field

Thanks Trevor. WHat do you mean by Use Data | Text to Columns to split the
field up. I would like the items between each / to be placed in 4 seperate
columns.


Shuttleworth" wrote:

You could use the length of the field as a check:
=LEN(A1)

or the length without slashes:
=LEN(SUBSTITUTE(A1,"/",""))

or the number of slashes:
=LEN(A1) - LEN(SUBSTITUTE(A1,"/",""))

Use Data | Text to Columns to split the field up

Regards

Trevor


"Finger Tips" wrote in message
...
I have the following field titled Path as part of a full query, that
has the following format of data, each row in the same format but
different
text.

/Community & Government/Social & Human Services/Individual &
Family/Abuse/
Other rows in this field contain just

/Community & Government/Social & Human Services/

0r

/Community & Government

or
A/

I am looking to run the query so it returns only listings that contain
the
four /../../../../ and then seperate the four into seperate fields.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default seperate field

If you select the cells with data separated by slashes and then, from the
Menu bar select:

Data | Text to columns ... | Delimited by | Other | /

that's exactly what it will do ... split the field into separate cells. You
choose where.

Regards

Trevor


"Finger Tips" wrote in message
...
Thanks Trevor. WHat do you mean by Use Data | Text to Columns to split the
field up. I would like the items between each / to be placed in 4
seperate
columns.


Shuttleworth" wrote:

You could use the length of the field as a check:
=LEN(A1)

or the length without slashes:
=LEN(SUBSTITUTE(A1,"/",""))

or the number of slashes:
=LEN(A1) - LEN(SUBSTITUTE(A1,"/",""))

Use Data | Text to Columns to split the field up

Regards

Trevor


"Finger Tips" wrote in message
...
I have the following field titled Path as part of a full query, that
has the following format of data, each row in the same format but
different
text.

/Community & Government/Social & Human Services/Individual &
Family/Abuse/
Other rows in this field contain just

/Community & Government/Social & Human Services/

0r

/Community & Government

or
A/

I am looking to run the query so it returns only listings that contain
the
four /../../../../ and then seperate the four into seperate fields.






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 to make a field created a part of the Pivot Table Field List? drhell Excel Discussion (Misc queries) 0 January 29th 07 11:13 PM
How do I seperate a full name field out into three seperate columns? Rod Excel Worksheet Functions 3 October 31st 06 08:06 PM
seperate first 2 lines of column in seperate columns in same row Glynnhamer Excel Discussion (Misc queries) 2 October 9th 06 04:23 AM
How do I seperate data from a pivot into seperate worksheets? Shannon Excel Discussion (Misc queries) 5 August 25th 05 06:07 AM
how do i seperate data from one column into two seperate ones in . Nikki Excel Discussion (Misc queries) 2 March 30th 05 08:31 PM


All times are GMT +1. The time now is 06:21 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"