Skip to Content
author's profile photo Former Member
Former Member

Pull Only Part of a Field up to a space

Hello:

I promise I'm going to get better at this formula stuff, I'm just not very good with it at this point.

I have a description field in a report that the customer puts their own Change Request Number or Identifying number in the field first, with a space after, then types in the description of the change. I need to pull only that first number so I can insert it into the top of the form. For example, on this field:

AJFA4-09-257 NexGen Rearchitecture - Stand up the new infrastructure at ACT

I need to pull just that first number up to the space before the word "NexGen". I know there's a way to do this but for the life of me I can't remember how. Again, I'm sure there's a simple way but I'm stumped at the moment.

Thanks very much for all your help.

Barb

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2009 at 11:48 PM

    try this formula

    split({description field}," ")[1]

    this gives the first part

    regards,

    Raghavendra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Opps never mind, I see what the [1] is for.

      I'm wondering if and how I could use this to solve another issue. Perhaps I should start anopther thread but it is along the same lines as this one.

      We need to separate out the work done by the contractors and the work done by the Feds. All contractors have CTR in the middle of their name though some, because Lotus Notes won't allow duplicate names in the directory, use their middle initial. So in other words, my name is

      Barbara CTR Buckley

      If I were to use my middle initial my name would be:

      Barbara A-CTR Buckley

      Could I use this formula to somehow pull out all the contractor work and if so, how would I go about accounting for both situations (middle initial and no middle initial)?

      Thanks

      Barb

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2009 at 06:07 AM

    other way is to use mid function as follows:

    Mid(,1,instr(," "))

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.