+ Reply to Thread
Results 1 to 5 of 5

Extract Month and Day from string

  1. #1
    Registered User
    Join Date
    04-20-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    29

    Extract Month and Day from string

    Good afternoon,

    I need to extract the month and day from a date / time string into another cell. An example of the string is 1/28/2014 10:26

    I want the result to be 1/28

    Thanks for your help

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Extract Month and Day from string

    Maybe
    =TEXT(A1,"MM/DD")

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,650

    Re: Extract Month and Day from string

    With string in A1:
    =LEFT(A1,SEARCH("/",A1,SEARCH("/",A1)+1)-1)
    Quang PT

  4. #4
    Registered User
    Join Date
    04-20-2013
    Location
    Minnesota
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Extract Month and Day from string

    Thanks Azumi. I knew this had to be something simple but I was drawing a complete blank.

    Allwrighty

  5. #5
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Extract Month and Day from string

    Yes you're welcome

+ 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 Text from String then Convert to a Date (Month/Year)
    By sgrey24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2013, 06:11 PM
  2. [SOLVED] How to Extract A Number from String if Text within the String Equals XYZ
    By tyrsfury in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-15-2012, 03:30 PM
  3. [SOLVED] Extract a mainly numeric string (ISSN number) from an arbitrary string
    By Buzzed Aldrin in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 07-04-2012, 01:49 PM
  4. Replies: 16
    Last Post: 10-11-2011, 12:31 PM
  5. Extract small string of text from larger string
    By mark_jam3s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2010, 05:36 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