Advertisement

11.05.2002 at 09:11AM PST, ID: 20390790
[x]
Attachment Details

Excel Substr

Asked by drees727 in Microsoft Office Suite

Tags: excel, substr

I have a table that contains 4 records.  Each record has a different contract number (some are prefixed by alpha characters, some are not).

ABC-1234561
MMT-4589741
4597891
8974441

In my query I need to be able to retrieve only the numeric portion:
1234561
4589741
4597891
8974441

Is there a way to do this?

My current code (see below) works but only on those that have prefixes.
SUBSTR(PROJECTS.SPONSOR_NUMBER,5,7),

Thanks for your help.



 Start Free Trial
[+][-]11.05.2002 at 09:27AM PST, ID: 7410973

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 09:50AM PST, ID: 7411078

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 10:01AM PST, ID: 7411131

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 10:05AM PST, ID: 7411146

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 10:05AM PST, ID: 7411148

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 10:14AM PST, ID: 7411186

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 10:18AM PST, ID: 7411199

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.05.2002 at 10:19AM PST, ID: 7411207

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.26.2002 at 09:05AM PST, ID: 7499567

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.26.2002 at 04:12PM PST, ID: 7500928

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.19.2003 at 05:50AM PST, ID: 7756510

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.02.2003 at 04:33PM PST, ID: 7864796

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Office Suite
Tags: excel, substr
Sign Up Now!
Solution Provided By: SpideyMod
Participating Experts: 5
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32