Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default converting a number to a date


hello,

I have a number that is actually a date, now i want to convert this
number back to a date, i have tried to do that with cell formats en
with the macro recorder, but the value in the cell remains the number
until you click on it several times. It must be converted at once
because several functions are depending on it.

Regards,
Niek


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default converting a number to a date

Lookup the function FormatDateTime in help.
-----Original Message-----

hello,

I have a number that is actually a date, now i want to

convert this
number back to a date, i have tried to do that with cell

formats en
with the macro recorder, but the value in the cell

remains the number
until you click on it several times. It must be converted

at once
because several functions are depending on it.

Regards,
Niek


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default converting a number to a date

Hi Niek,

Excel is probably treating the cell values as text, not numeric entries. To
force Excel to reevaluate the values, do the following:

1) Enter 0 in an empty cell.
2) Copy that cell.
3) Select the range of cells giving you problems.
4) Paste Special values & Operations/Add

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


AA wrote:
Lookup the function FormatDateTime in help.
-----Original Message-----

hello,

I have a number that is actually a date, now i want to convert this
number back to a date, i have tried to do that with cell formats en
with the macro recorder, but the value in the cell remains the number
until you click on it several times. It must be converted at once
because several functions are depending on it.

Regards,
Niek


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from
http://www.ExcelForum.com/

.


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
Converting number into proper date format Brandy Excel Discussion (Misc queries) 3 July 7th 09 05:24 PM
Converting Number to Date billbrandi Excel Discussion (Misc queries) 2 December 28th 07 09:25 PM
Converting a number to a date Pete Excel Discussion (Misc queries) 3 February 6th 07 03:51 AM
converting date to number Todd Excel Worksheet Functions 9 September 3rd 06 01:33 AM
converting 8-digit number to date DJ Excel Discussion (Misc queries) 6 June 12th 06 11:44 PM


All times are GMT +1. The time now is 06:41 PM.

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

About Us

"It's about Microsoft Excel"