ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Extracting date from Date and Time formatted cell (https://www.excelbanter.com/excel-discussion-misc-queries/223303-extracting-date-date-time-formatted-cell.html)

Aviral Sharma

Extracting date from Date and Time formatted cell
 
Hi

I have a date and time in cell A1 e.g. 3/14/2008 03:45 PM and in cell B1 I
only want date not the time i.e. 3/14/2008.

can someone help me with some formula for this.


Regards
Aviral Sharma

JBeaucaire[_90_]

Extracting date from Date and Time formatted cell
 
The formula I always use for that is:

=INT(B1)

....and format that cell as DATE.

--
"Actually, I *am* a rocket scientist." -- JB

Your feedback is appreciated, click YES if this post helped you.


"Aviral Sharma" wrote:

Hi

I have a date and time in cell A1 e.g. 3/14/2008 03:45 PM and in cell B1 I
only want date not the time i.e. 3/14/2008.

can someone help me with some formula for this.


Regards
Aviral Sharma


Davesexcel

Extracting date from Date and Time formatted cell
 
You can use..
=TEXT(A1,"mm/dd/yyy")

or
=A1 and then format the cell to the date format


All times are GMT +1. The time now is 04:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com