Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Excel 2007 reformatting cells

I have a column of numbers that are formatted as text. I can change the
format to number but the value does not change. What is the shortcut for
rentering the value that is currently in the cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Excel 2007 reformatting cells

Hi,
insert a column and enter the formula

=trim(A1)
copy it down, then copy and paste as values , then format as number

trim will eliminate any blank space

"Bzltyr" wrote:

I have a column of numbers that are formatted as text. I can change the
format to number but the value does not change. What is the shortcut for
rentering the value that is currently in the cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Excel 2007 reformatting cells

One way is to copy a blank cell. Select the column of numbers and right
clickPasteSpecialAdd..OK.

Another if error checking is enabled ;;select the column. Within the
selection the active cell should contain a number formatted as text. If you
notice a light yellow colored box appearing to the left side (with a green
triangle on the left top corner of the cell)..Click on the yellow box
(exclamation mark) and select convert to number.

If this post helps click Yes
---------------
Jacob Skaria


"Bzltyr" wrote:

I have a column of numbers that are formatted as text. I can change the
format to number but the value does not change. What is the shortcut for
rentering the value that is currently in the cell?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Excel 2007 reformatting cells

Thanks for the advice. There is a shortcut that all one has to do is
highlight the cell and hit the shortcut key and the same value that is in the
cell will just be renetered and will change from text to number.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Excel 2007 reformatting cells

Quite an onerous method if you have 1234000 cells<g

Go with the paste specialadd


Gord Dibben MS Excel MVP


On Thu, 1 Oct 2009 10:44:23 -0700, Bzltyr
wrote:

Thanks for the advice. There is a shortcut that all one has to do is
highlight the cell and hit the shortcut key and the same value that is in the
cell will just be renetered and will change from text to number.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Excel 2007 reformatting cells

You might try copying an empty cell, then selecting your column of "numbers"
and using Edit/ Paste Special/ Add
An alternative approach is to try Data/ Text to Columns
You might find that your cells contain spaces, or non-breaking spaces or
other non-numeric characters, so you might try a SUBSTITUTE or REPLACE
operation.
--
David Biddulph

"Bzltyr" wrote in message
...
I have a column of numbers that are formatted as text. I can change the
format to number but the value does not change. What is the shortcut for
rentering the value that is currently in the cell?



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel 2007 reformatting cells

I am having the most difficult time. I have time values in the format
hh:mm:ss:sss, where the last three values are milliseconds. The problem is
that they are seperated from the seconds by a colon, which leaves me unable
to use them to calculate the differences between two of these times.
I need to find a way to either calcultate the time difference between the
two, or a way to get rid of the last kolon and millisecond values. Can
anyone help?
--
Regards,
Joseph


"Bzltyr" wrote:

I have a column of numbers that are formatted as text. I can change the
format to number but the value does not change. What is the shortcut for
rentering the value that is currently in the cell?

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Excel 2007 reformatting cells

You could use a helper column of cells that changes the text values to real time
values. The formula would be something like:

=--SUBSTITUTE(A1,":",".",3)

The -- converts text to a real number (like multiplying by -1 twice).

The 3 indicates that you want the 3rd colon changed to a comma.

Then format the cell(s) with a custom format of: hh:mm:ss.000

You could actually embed this formula into any existing formula:

=a1-b1
would become:
=SUBSTITUTE(A1,":",".",3) - SUBSTITUTE(b1,":",".",3)
Format the cell with this formula nicely: hh:mm:ss.000
The subtraction will force excel to treat each as a number. The -- stuff won't
be necessary.

But I'd fix the data once so that I wouldn't have to worry about fixing all the
formulas (and new formulas).



Joseph Ryan wrote:

I am having the most difficult time. I have time values in the format
hh:mm:ss:sss, where the last three values are milliseconds. The problem is
that they are seperated from the seconds by a colon, which leaves me unable
to use them to calculate the differences between two of these times.
I need to find a way to either calcultate the time difference between the
two, or a way to get rid of the last kolon and millisecond values. Can
anyone help?
--
Regards,
Joseph

"Bzltyr" wrote:

I have a column of numbers that are formatted as text. I can change the
format to number but the value does not change. What is the shortcut for
rentering the value that is currently in the cell?


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Excel 2007 reformatting cells

=--(LEFT(A1,LEN(A1)-4)&"."&RIGHT(A1,3)) and format the result as
hh:mm:ss.000
--
David Biddulph

"Joseph Ryan" wrote in message
...
I am having the most difficult time. I have time values in the format
hh:mm:ss:sss, where the last three values are milliseconds. The problem
is
that they are seperated from the seconds by a colon, which leaves me
unable
to use them to calculate the differences between two of these times.
I need to find a way to either calcultate the time difference between the
two, or a way to get rid of the last kolon and millisecond values. Can
anyone help?
--
Regards,
Joseph


"Bzltyr" wrote:

I have a column of numbers that are formatted as text. I can change the
format to number but the value does not change. What is the shortcut for
rentering the value that is currently in the cell?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reformatting numbers in cells Joanne New Users to Excel 1 July 30th 08 05:23 PM
Reformatting addresses in excel 2003 bob_mhc Excel Worksheet Functions 2 May 2nd 07 11:34 PM
Reformatting text in cells RFJ Excel Worksheet Functions 3 April 9th 07 06:41 PM
Macro for reformatting cells Gina_Louisville Excel Worksheet Functions 4 October 19th 06 04:51 PM
Is there a fix to stop Excel from reformatting columns? vmdavis Excel Discussion (Misc queries) 1 June 16th 05 12:36 AM


All times are GMT +1. The time now is 02:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"