+ Reply to Thread
Results 1 to 6 of 6

Formula to Extract Specific Characters from a String

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Formula to Extract Specific Characters from a String

    Can someone please help me with a formula to extract the "227120" characters between two "."'s in a string such as:

    Position Title.227120.730

    I will use the value of this segment in a vlookup to determine another outcome, so need to have this formula result to perform the vlookup.

    The string will always contains 6 characters between the "."s

    Thanks in advance
    Last edited by BONCH; 06-27-2017 at 09:51 PM.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Formula Problem

    Assuming string to be searched is in A1, the following returns TEXT:
    =MID(A1,SEARCH(".",A1)+1,6)

    ...or this if you need to convert it to a number:
    =VALUE(MID(A1,SEARCH(".",A1)+1,6))

    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-27-2017 at 09:46 PM.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,708

    Re: Formula to Extract Specific Characters from a String

    To return a numeric value try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    To return a text "number" try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  4. #4
    Registered User
    Join Date
    08-13-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula Problem

    Thanks. My apologies. I've updated the Title. Hope this is more appropriate.

    kind regards

  5. #5
    Registered User
    Join Date
    08-13-2012
    Location
    Adelaide, South Australia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Formula to Extract Specific Characters from a String

    thanks very much Dave, this worked a treat!

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,708

    Re: Formula to Extract Specific Characters from a String

    You're welcome. Thanks for the feedback.

+ 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. IF Formula Problem
    By jimcincy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2015, 04:37 PM
  2. Formula Problem
    By cyberice in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2014, 04:06 PM
  3. Replies: 1
    Last Post: 01-06-2014, 03:54 AM
  4. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  5. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  6. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  7. [SOLVED] Formula problem
    By Steved in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM

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