+ Reply to Thread
Results 1 to 4 of 4

Formula to convert string

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to convert string

    Hello:

    I have (11/29/2013) in cell B1
    I want to convert this to 11/29/2013 in Cell B3, please help achieve this.

    Let me know if any questions.

    Thanks

    Riz Momin
    Last edited by rizmomin; 12-03-2013 at 08:58 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula to convert string

    hi Riz. more egs would help because whether your dates are in DMY, or DDMMYY determines how short the formula is. i'm going to give you the longer version since i don't know. but if your date regional settings is MDY, then simply:
    =--MID(B1,2,LEN(B1)-2)

    if not, then:
    =DATE(LEFT(RIGHT(B1,5),4),MID(B1,2,FIND("/",B1)-2),SUBSTITUTE(MID(B1,FIND("/",B1)+1,2),"/",""))

    format cells to achieve your desired date format

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

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

    Re: Formula to convert string

    Put in B3

    =SUBSTITUTE(SUBSTITUTE(B1,"(",""),")","")

    Azumi

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to convert string

    Hi azumi:

    Thank you so much for quick help.

    Riz Momin

+ 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] Formula to convert string in a cell to a date
    By maryren in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2013, 12:08 PM
  2. [SOLVED] Need to Convert Formula R1C1 into A1-style but the Formula String exceeds 255 characters
    By VBA_Gary in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2012, 12:09 PM
  3. [SOLVED] convert string to formula
    By MartyZ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2012, 10:43 AM
  4. Convert string into a cell reference in a formula
    By seaottr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2011, 07:10 PM
  5. convert array formula output to string
    By MCCCLXXXV in forum Excel General
    Replies: 2
    Last Post: 07-07-2011, 11:57 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