+ Reply to Thread
Results 1 to 2 of 2

Need to remove space from a column & Cell should be formated to Number Format..

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    0

    Need to remove space from a column & Cell should be formated to Number Format..

    Hi All,

    I was trying to do some reports by pulling data from the server..

    Where i get the time worked on each project

    like 45.00 with space in the end.. I tried Substitute(A2, " ",""), it worked but A2 which contains 45.00 is an Text column.

    So what i want is when i remove the space the data should be converted to Number format & it should also retain the decimal point (i.e., .00)..

    Can anyone please help on this??

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

    Re: Need to remove space from a column & Cell should be formated to Number Format..

    hi Arjoos, welcome to the forum. try:
    =VALUE(TRIM(A2))
    or using your formula:
    =VALUE(Substitute(A2, " ",""))

    whatever decimals you see is simply formatting. if you don't see it, you can simply format cells. to forcefully place 2 decimals by formulas would make it a text

    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

+ 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. Remove Space between number and letter on excel spreadsheet
    By BowHunter09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2013, 09:06 PM
  2. [SOLVED] If Cell Starts with a Space, remove that space
    By Ocean Zhang in forum Excel General
    Replies: 2
    Last Post: 09-29-2012, 01:52 PM
  3. How to remove space between Y axis and column
    By NineIron in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 02-09-2012, 01:03 PM
  4. Remove trailing space from a cell, convert to number
    By lil_ern63 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2010, 12:19 PM
  5. Replies: 6
    Last Post: 06-29-2006, 01:20 PM

Tags for this Thread

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