+ Reply to Thread
Results 1 to 4 of 4

convert text to number with a formula

  1. #1
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    convert text to number with a formula

    This is probably simple, but I'm stuck. I need a formula to copy a number stored as a text to the number.

    I have a formula in, let's say on Sheet1, cell A1: =IF($M$3,TEXT(N7,"0%"),TEXT(N7,"0.0%"))

    I then copy this cell to another sheet, let's say Sheet2, cell A1 =Sheet1!A1. I have then have a bar chart linked to this cell, but it's reading it as text and no bars are appearing in the chart - even though the cell in the second sheet is formatted as a number!

    FYI - my work around is to link my chart to the underlying data in the formula above, in this case, N7. But then I'm not getting the whole number (%) or decimal (%) that I want when the value is displayed in the chart.

    Thanks.

    -HeyInKy

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: convert text to number with a formula

    The TEXT function returns...well... TEXT
    Even if it looks like a number.

    You can use +0 after the text function to convert it to a real number.

    =IF($M$3,TEXT(N7,"0%"),TEXT(N7,"0.0%"))+0

  3. #3
    Forum Contributor
    Join Date
    04-14-2013
    Location
    Ky
    MS-Off Ver
    Excel 2013
    Posts
    344

    Re: convert text to number with a formula

    Excellent!! Thank you!!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: convert text to number with a formula

    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. Replies: 12
    Last Post: 04-08-2014, 08:12 PM
  2. Need help with formula to convert text from one column to number in another
    By lhansberry in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-01-2013, 01:02 PM
  3. [SOLVED] Formula to convert date to text/number
    By Schwartz in forum Excel General
    Replies: 7
    Last Post: 04-20-2012, 04:26 PM
  4. Excel 2007 : use formula to convert text to number
    By fentontech in forum Excel General
    Replies: 3
    Last Post: 11-15-2011, 11:11 AM
  5. Replies: 1
    Last Post: 07-29-2005, 04:05 PM

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