Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gb_S49
 
Posts: n/a
Default Get date function?

I am trying to extract just the date aspect of the following (text?) (cell A3)
30/03/2005 14:17:00. using =DATEVALUE(MID(A3,0,10))
all i get #value
any suggestions?
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Use

=INT(A3)

if it truly is a date, and format the cell as date. If
it's a text string, try:

=LEFT(A3,FIND(" ",A3)-1)+0

HTH
Jason
Atlanta, GA

-----Original Message-----
I am trying to extract just the date aspect of the

following (text?) (cell A3)
30/03/2005 14:17:00. using =DATEVALUE(MID(A3,0,10))
all i get #value
any suggestions?
.

  #3   Report Post  
gb_S49
 
Posts: n/a
Default

Jason, It works.
That's brilliant.
THANK YOU
What does int mean though

"Jason Morin" wrote:

Use

=INT(A3)

if it truly is a date, and format the cell as date. If
it's a text string, try:

=LEFT(A3,FIND(" ",A3)-1)+0

HTH
Jason
Atlanta, GA

-----Original Message-----
I am trying to extract just the date aspect of the

following (text?) (cell A3)
30/03/2005 14:17:00. using =DATEVALUE(MID(A3,0,10))
all i get #value
any suggestions?
.


  #4   Report Post  
RagDyeR
 
Posts: n/a
Default

Try these:

Put this in a cell:
=A3
And format the cell
dd/mm/yy

OR
Put this in a cell:
=TEXT(A3,"dd/mm/yy")
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"gb_S49" wrote in message
...
I am trying to extract just the date aspect of the following (text?) (cell
A3)
30/03/2005 14:17:00. using =DATEVALUE(MID(A3,0,10))
all i get #value
any suggestions?


  #5   Report Post  
gb_S49
 
Posts: n/a
Default

That's brilliant..THANK YOU

"RagDyeR" wrote:

Try these:

Put this in a cell:
=A3
And format the cell
dd/mm/yy

OR
Put this in a cell:
=TEXT(A3,"dd/mm/yy")
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"gb_S49" wrote in message
...
I am trying to extract just the date aspect of the following (text?) (cell
A3)
30/03/2005 14:17:00. using =DATEVALUE(MID(A3,0,10))
all i get #value
any suggestions?





  #6   Report Post  
Myrna Larson
 
Posts: n/a
Default

In case you are wondering why your formula didn't work, it's because
characters are counted starting with 1, not 0. It should be

=DATEVALUE(MID(A3,1,10))


"gb_S49" wrote in message
...
I am trying to extract just the date aspect of the following (text?) (cell
A3)
30/03/2005 14:17:00. using =DATEVALUE(MID(A3,0,10))
all i get #value


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
Using date function in an if statement M Smith Excel Worksheet Functions 2 March 30th 05 06:53 PM
Is there a function to show future date taxmom Excel Worksheet Functions 2 March 4th 05 09:23 PM
Date function geza Excel Worksheet Functions 2 February 11th 05 04:15 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM
Formula for date function Markitos Excel Worksheet Functions 15 November 10th 04 02:05 AM


All times are GMT +1. The time now is 10:27 PM.

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"