+ Reply to Thread
Results 1 to 6 of 6

Problem with TEXT() function

  1. #1
    Registered User
    Join Date
    10-11-2011
    Location
    Thailand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Problem with TEXT() function

    Hi, from my file in row 3 (Input number ===>) I try to use TEXT to change the number in above to my format text

    Problem
    - when I try to input the number in cell C3 (in sample file is 835) and I want to change to 8:35 in cell C4 but anything wrong ? it error,
    -because when I open it in my boss notebook is usual.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: (Function)-I have problem with TEXT()

    In C4: =IFERROR(TIMEVALUE(LEFT(C3, LEN(C3)-2)&":"&RIGHT(C3,2)), 0)

    Format that cell as Custom: h:mm

    Then copy that across through X4.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Problem with TEXT() function

    =LEFT(C3,LEN(C3)-2)&"." & RIGHT(C3,2)

    This will help you in same objective.

    _________________________________________________________________________________________________
    Please click * if something has helped.

    I have not failed. I've just found 10,000 ways that won't work.

    Thomas A. Edison

  4. #4
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: (Function)-I have problem with TEXT()

    Sorry

    =LEFT(C3,LEN(C3)-2)&":" & RIGHT(C3,2)

  5. #5
    Registered User
    Join Date
    10-11-2011
    Location
    Thailand
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Problem with TEXT() function

    I ask somethings ?, why old format in cell C4 is not correct?

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Problem with TEXT() function

    Excel stores TIME values as fractions of the number 1.

    0 = midnight
    .25 = 6am
    .5 = noon
    .75 = 6pm

    The formula given in C4 results in a numeric value of 0.357638889. When you highlight that cell and then apply a TIME format of h:mm it will display that number to you as 8:35. Just what you wanted.


    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 0
    Last Post: 07-12-2012, 12:31 PM
  2. Extract text strings separated by commas and spaces
    By VB15 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-21-2012, 04:49 PM
  3. text() function problem
    By sunwan in forum Excel General
    Replies: 11
    Last Post: 05-05-2007, 05:50 AM
  4. [SOLVED] TEXT() function problem in Excel 2002
    By Boopathi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2005, 07:05 PM
  5. Text Function Problem
    By andyp161 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2005, 10:20 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