+ Reply to Thread
Results 1 to 5 of 5

String extraction

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013/10/07/03
    Posts
    33

    String extraction

    Good morning all,

    Working on a string extraction formula using a couple cells that i need to have in a defined format. Essentially i need the format to be the same as the following : IIMS:2014-08-01-00001
    The string extraction needs to look up 2 different cells to get this data. One which contains the date (C2), the other contains the last number (D2).

    What i have been working with so far is ="IIMS:"&year(C2)&"-"&Month(C2)&"-"&Day(C2)&"-"&MID(D2,FIND("S",D2)+1,FIND(":",D2)-FIND("S",D2)-1)

    The mid part isnt the most elegant so i imagine i can tidy that up, but the main issue is the output format is not right as per below.

    Result - IIMS:2014-8-1-1
    Expected - IIMS:2014-08-01-00001

    See attached for a probably less confusing explanation.

    Cheers,

    Pytheus
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: String extraction

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: String extraction

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-08-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2013/10/07/03
    Posts
    33

    Re: String extraction

    Cant believe i forgot "text" -.-v I couldnt work out why i couldnt use the text format. sigh. 5 weeks holidays and my brain goes to mush.

    Thankyou very much for your help mehmetcik.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: String extraction

    Hi,

    Perhaps

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. multiple criteria search and extraction from string!
    By oasafox in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-28-2014, 07:27 AM
  2. Replies: 6
    Last Post: 12-08-2013, 06:23 AM
  3. [SOLVED] URL extraction help
    By mecutemecute in forum Excel General
    Replies: 10
    Last Post: 06-10-2013, 01:18 AM
  4. String Extraction
    By qcity in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-27-2011, 10:58 PM
  5. [SOLVED] String Extraction...
    By iceberg27 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2005, 12:05 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