+ Reply to Thread
Results 1 to 4 of 4

turn number into text

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    turn number into text

    Hello. Is there a formula I can use that will look at the following in an excel cell Daily Numbers Report - Summary_2014-01-26.xls
    and then convert that into the date value 41,300. And the same thing for all other cells with the same format...so if was Daily Numbers Report - Summary_2014-01-23.xls the formula would convert it to 41,297. Thanks

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: turn number into text

    I think you want this:
    Formula: copy to clipboard
    =DATEVALUE(MID(A1,FIND("Summary_",A1)+8,10))


    But the serial date of 26-01-2014 is 41,665, not 41,300... 41,300 is 26-01-2013
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,461

    Re: turn number into text

    If your text is in A1, you can use this formula:

    =DATE(MID(A1,FIND("_",A1)+1,4),MID(A1,FIND("_",A1)+6,2),MID(A1,FIND("_",A1)+9,2))

    ensure that the cell with the formula in is formatted as a Number.

    Hope this helps.

    Pete

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: turn number into text

    Not sure if you want to return the entire string or just the number replacing date.

    So if you need just the number:

    =TEXT(--MID(A1,FIND("_",A1)+1,10),"#,000")

    If you need the string with the number:

    =LEFT(A1,LEN(A1)-14)&TEXT(--MID(A1,FIND("_",A1)+1,10),"#,000")

    A
    B
    1
    Daily Numbers Report - Summary_2014-01-26.xls Daily Numbers Report - Summary_41,665
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] How to turn number to state
    By Kjellis85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2013, 06:18 AM
  2. [SOLVED] Mysterious Spacing Turn Number Into Text With Leading Zero
    By jackgan in forum Excel General
    Replies: 5
    Last Post: 07-31-2013, 10:35 AM
  3. [SOLVED] turn text string into row/s for each specific serial number
    By petrasimonova in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2013, 05:48 AM
  4. Replies: 3
    Last Post: 10-13-2011, 08:53 AM
  5. Replies: 3
    Last Post: 06-02-2011, 11:03 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