Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Split Field content in Query?

Hi All,

Is it possible to get part of data in a field using query?

I have a filed for which the number of characters is not fixed containg
data in the format xxxx/xxxxxxx

I want to get only the right side of the "/" only in a field. The
number of characters after "/" is not fixed.

Any help please?

thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Split Field content in Query?

I have a filed for which the number of characters is not fixed
containg data in the format xxxx/xxxxxxx

I want to get only the right side of the "/" only in a field. The
number of characters after "/" is not fixed.


Abdul:

SELECT mid(tblTester.Field1,instr(tblTester.Field1,'/')+1,255) AS
'RightSide'
FROM tblTester

where the field is Field1, the table is tblTester and the name you want to
return is RightSide. The mid function is used to return part of a string
and the instr function will tell you the position of '/' in your string.

--
Dick Kusleika
MVP-Excel
www.dailydoseofexcel.com


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
split the content of cell cosmic Excel Worksheet Functions 3 May 28th 10 04:48 PM
Split cell content PK Excel Discussion (Misc queries) 3 March 5th 10 08:36 PM
Split One Work book into several based on content Rich Excel Worksheet Functions 2 May 21st 06 06:24 PM
split cell content Ove[_2_] Excel Programming 1 September 21st 04 02:23 PM
split cell content portroe Excel Programming 2 February 11th 04 08:11 PM


All times are GMT +1. The time now is 08:46 PM.

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

About Us

"It's about Microsoft Excel"