Excel Worksheet Tips: Extract Date or Time from Date/Time

Do you have a cell that contains both a date and time value but only need one or the other?

To extract the date

Assuming the date time value is in cell A1, you can use the following formula:

=DATEVALUE(MONTH(A1) & “/” & DAY(A1) & “/” & YEAR(A1))

To extract the time

=MOD(A1,1)

Come check out the directory for the rest of my excel tips!

Submeg

IT

Posted by:submeg

Musician, Writer and Inspirer. I discuss the projects I am working on, the services I provide and my general thoughts.

Tell me what you think!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s