+ Reply to Thread
Results 1 to 5 of 5

Need to extract part of a cell that's an alphanumeric (minus sign with number/alpha value)

  1. #1
    Registered User
    Join Date
    11-06-2013
    Location
    Midlands England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Need to extract part of a cell that's an alphanumeric (minus sign with number/alpha value)

    Hello Everyone..

    I have a cells containing text streams (example in A1: Made in China 12345367658-01 Chemical XYZ 200 G/l )

    I want to extract the " -01 " portion of the cell only.

    The alphatext string can vary both pre and post the "-01".

    Is there a smart / easy one step way in which to extract the -01 value (note the value can be -02, -A3, -1A etc..., but never more than 2 digits long and its always post the "-" (minus) sign).

    I am after a function, cell formula rather than a macro

    Hope that's clear, any help much appreciated...

    Thanks
    Jaybo

  2. #2
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: Need to extract part of a cell that's an alphanumeric (minus sign with number/alpha va

    =MID(A1,FIND("-",A1)+1,2)

    Chris

  3. #3
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: Need to extract part of a cell that's an alphanumeric (minus sign with number/alpha va

    Or
    =MID(A1,FIND("-",A1),3)

    if you need the "-"

    Chris

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Need to extract part of a cell that's an alphanumeric (minus sign with number/alpha va

    Hi Jaybo and welcome to the forum,

    Something like
    =LEFT(A1,FIND("-",A1)-1)& MID(A1,FIND("-",A1)+2,100)
    should do you....

    See the attached for the example.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    11-06-2013
    Location
    Midlands England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Re: Need to extract part of a cell that's an alphanumeric (minus sign with number/alpha va

    A great big thank you to you both... You have saved me loads of time & hassle in trying to figure this out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Extract number that comes before a certain word in an alphanumeric cell
    By Pearla in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-27-2012, 07:13 PM
  2. Minus sign at the end of number
    By cope in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2009, 01:13 PM
  3. Extract Numeric and Alpha strings from Alphanumeric String
    By Gos-C in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-01-2007, 07:34 PM
  4. Formatting: Display a minus sign before a number
    By SharonJo in forum Excel General
    Replies: 8
    Last Post: 01-06-2006, 11:37 PM
  5. [SOLVED] How do I find and replace a number with a minus sign in front?
    By D.Sommer in forum Excel General
    Replies: 1
    Last Post: 11-07-2005, 06:20 AM

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