PC Review


Reply
Thread Tools Rate Thread

How can I use the format function to change the stored value of a cell in excel?

 
 
jbondsr
Guest
Posts: n/a
 
      27th Aug 2004
How can I use the format function to change the stored value of a cel
in excel?

For example, In a colum I have data that is displayed like this:
19:59 12/31/69

But the actual stored data when you go to edit the cell is like this:
12/31/1969 7:59:00 PM

I want the stored data to be like the displayed value so I can sort th
column by the time and not the day.

By the way, I do not know how to do macros or use VB.:

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      27th Aug 2004
Hi
you can search by date and time. No problem with this display. what are
you exactly looking for

--
Regards
Frank Kabel
Frankfurt, Germany

"jbondsr >" <<(E-Mail Removed)> schrieb im
Newsbeitrag news:(E-Mail Removed)...
> How can I use the format function to change the stored value of a

cell
> in excel?
>
> For example, In a colum I have data that is displayed like this:
> 19:59 12/31/69
>
> But the actual stored data when you go to edit the cell is like this:
> 12/31/1969 7:59:00 PM
>
> I want the stored data to be like the displayed value so I can sort

the
> column by the time and not the day.
>
> By the way, I do not know how to do macros or use VB.
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>


 
Reply With Quote
 
jbondsr
Guest
Posts: n/a
 
      27th Aug 2004
You see, the problem is that since the stored data in each cell consists
of the date first before the time, if i click sort, it will sort the
data in the collumn according to the day. If I wanted to sort by the
time in each cell, I'd have to manually go into each cell and move the
time to be in front of the day.

I was wondering if there was I way I could have excel automatically
move around the data in the cell so that the time is first in the cell,
then the date after it. Changing the display format of the cells in the
column doesn't help because it doesn't change the stored data in the
cell, and I need it to be changed in order to sort it the way I want
it.


---
Message posted from http://www.ExcelForum.com/

 
Reply With Quote
 
Frank Kabel
Guest
Posts: n/a
 
      27th Aug 2004
Hi
now I understand :-)
The only way to solve this would be using a helper column. enter the
following formula in B1 for example:
=MOD(A1,1)
and copy this down for all rows (and format the cells as time)

Now sort with this column
Changing the format won't help

--
Regards
Frank Kabel
Frankfurt, Germany

"jbondsr >" <<(E-Mail Removed)> schrieb im
Newsbeitrag news:(E-Mail Removed)...
> You see, the problem is that since the stored data in each cell

consists
> of the date first before the time, if i click sort, it will sort the
> data in the collumn according to the day. If I wanted to sort by the
> time in each cell, I'd have to manually go into each cell and move

the
> time to be in front of the day.
>
> I was wondering if there was I way I could have excel automatically
> move around the data in the cell so that the time is first in the

cell,
> then the date after it. Changing the display format of the cells in

the
> column doesn't help because it doesn't change the stored data in the
> cell, and I need it to be changed in order to sort it the way I want
> it.
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>


 
Reply With Quote
 
jbondsr
Guest
Posts: n/a
 
      27th Aug 2004
Ok.
Thanks.
I got the first part to work, but now when I try to sort the column, i
won't sort

--
Message posted from http://www.ExcelForum.com

 
Reply With Quote
 
Frank Kabel
Guest
Posts: n/a
 
      27th Aug 2004
Hi
it should work :-)
Have you selected both columns? And also what appears in column B

--
Regards
Frank Kabel
Frankfurt, Germany

"jbondsr >" <<(E-Mail Removed)> schrieb im
Newsbeitrag news:(E-Mail Removed)...
> Ok.
> Thanks.
> I got the first part to work, but now when I try to sort the column,

it
> won't sort.
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ask Excel not to change cell format to auto wrap after using alt+e =?Utf-8?B?cGhpbGlwcGU=?= Microsoft Excel Discussion 1 8th Sep 2006 06:20 PM
How do I unhide the cell format function in Excel 2000 =?Utf-8?B?TGVuIE1lbGNlcg==?= Microsoft Excel Worksheet Functions 2 15th Dec 2004 06:49 PM
How do I change the format of how my active cell in Excel is view. =?Utf-8?B?SmFtZXMgV2hhbGV5?= Microsoft Excel Misc 1 4th Oct 2004 10:42 PM
Excel should let me change format of the cell when it contains for =?Utf-8?B?RG9ndSBCb3phbGlvZ2x1?= Microsoft Excel Programming 1 23rd Sep 2004 04:53 PM
Using a function result in one cell to change a format in another cell =?Utf-8?B?QW5kcmV3IEJhcm5lcw==?= Microsoft Excel Misc 4 28th Jan 2004 12:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 PM.