+ Reply to Thread
Results 1 to 4 of 4

PowerPivot - Data Analysis Expression

  1. #1
    Forum Contributor
    Join Date
    01-18-2009
    Location
    Montreal
    MS-Off Ver
    MS Office 2016
    Posts
    111

    PowerPivot - Data Analysis Expression

    Hello Everyone

    Need your assistance on the following scenario for extracting a PO#. I got my formula working but believe it can further improved.

    This is how data is populated under the "Shipper_Description" column field:
    SLAC _ 24 PACKAGES OF OUTD OOR PLASTIC PRODUCTS HS CODE: 9403 PO: 9400173962

    My formula under "PO":
    =RIGHT([Shipper_Description],LEN([Shipper_Description])-SEARCH(" PO: ",[Shipper_Description],1))

    Result: "PO: 9400173962"

    1st question: How can I just simply get "9400173962" without including the PO text? I know it can be done instead of doing =mid([po],4,11).

    Last question relevant to topic.

    Sometimes, I have multiple PO's under the same line but my formula only captures the 1st one.
    Example: PO: 4300175985 _ 4300175713

    How can I capture both separated by a comma delimiter using the same formula?
    =RIGHT([Shipper_Description],LEN([Shipper_Description])-SEARCH(" PO: ",[Shipper_Description],1))

    Thank you.
    Antonio
    Last edited by jantonio; 06-05-2012 at 10:58 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: PowerPivot - Data Analysis Expression

    If there are always 10 characters, you can use the formula in my workbook.

    Do you have questions, just ask.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    01-18-2009
    Location
    Montreal
    MS-Off Ver
    MS Office 2016
    Posts
    111

    Re: PowerPivot - Data Analysis Expression

    Thank you for your input... but I can't use regular excel formulas for this purpose or else I would require multiple columns.

    I was able to work out this last week with my updated formula.

    My formula under "PO":
    =RIGHT([Shipper_Description],LEN([Shipper_Description])-SEARCH(" PO: ",[Shipper_Description],1)-4)
    Result: 9400173962

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: PowerPivot - Data Analysis Expression

    Thank you for your input... but I can't use regular excel formulas for this purpose or else I would require multiple columns. So?

    Does it always have 10 characters?

    And how is your solution when you getting multiple PO's ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1