+ Reply to Thread
Results 1 to 6 of 6

Converting text to number (value formula)

  1. #1
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Converting text to number (value formula)

    Hello dears

    im trying to use "value" formula, to convert text to number but it dosent work for all data
    attached sample

    thanks in advance
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Converting text to number (value formula)

    Try =A2+0 copied down.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    05-14-2019
    Location
    Alex, Egypt
    MS-Off Ver
    365
    Posts
    254

    Re: Converting text to number (value formula)

    same issue, i guess the problem is with the date format DD/MM or MM/DD

  4. #4
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: Converting text to number (value formula)

    B2=IF($A2<>"",IFERROR(IF(TEXTBEFORE($A2,"-")+0<=12,VALUE($A2),SUBSTITUTE($A2,TEXTBEFORE(A2,"-"),TEXTBEFORE(TEXTAFTER($A2,"-"),"-"))+0),A2),"")

    Copy down

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,464

    Re: Converting text to number (value formula)

    Your dates in Column A are dd-mm-yyyy, but your VALUE function expects mm-dd-yyyy, due to local settings.

    So try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: If your VALUE function expects dd-mm-yyyy, due to local settings this solution does not work.
    In that case you need your own solution in post #1 or the solution of Glenn in post #2.

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: Converting text to number (value formula)

    Power Query
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Converting a text and number time into a numerical value and converting to minutes
    By RQuilley in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2020, 11:40 AM
  2. Converting number to actual text of number (spelling out the number)
    By rfigueroa1976 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2019, 11:05 AM
  3. Converting Find formula from Text to Number
    By formexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-07-2017, 03:05 PM
  4. Converting Find formula from Text to Number
    By formexcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2017, 03:03 PM
  5. Converting text number to a number in a formula...
    By Tommy1115 in forum Excel General
    Replies: 2
    Last Post: 03-24-2016, 05:49 AM
  6. [SOLVED] Converting text to number
    By massoudrm in forum Excel General
    Replies: 7
    Last Post: 06-09-2013, 01:19 PM
  7. what formula converting number to text in english or hindi in exl
    By satyavan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2006, 02:45 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