What date format is suitable for 2023.12.20 2:16

yabi100

Board Regular
Joined
Aug 10, 2013
Messages
84
Office Version
  1. 2016
Platform
  1. Windows
I have an excel file where date and time is shown as follows:
20 Dec 2023 2:16:27
I want them to be shown in following format:
2023.12.20 2:16
How should I define the desired format?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Custom format
yyyy.mm.dd h:mm
Dear Jeff
My problem is that these dates are imported from another program so actually they are text not date. I am able to change them to date using datevalue function. Later when I want to concatnate the date with hour, date is shown as serial number. How can I correct it to be shown as date not a serial number?
 

Attachments

  • datevalue.JPG
    datevalue.JPG
    21.2 KB · Views: 2
Upvote 0
I find following reply through search in mrexcel site and solved my problem

Excel Formula:

=A2&" - "&text(B2,"mm/dd/yyyy")&" - "&C2&", "&D2

Thanks fluff for above solution.
 
Upvote 0
The formula you showed gives a result that is nothing at all like the result you said you wanted in your first post. In addition, it draws data from four different cells, also nothing like what you described.

In addition, this solution will still give you text, not a date value.

I don't see how Fluff's formula solves your particular problem.
 
Upvote 1
The formula you showed gives a result that is nothing at all like the result you said you wanted in your first post. In addition, it draws data from four different cells, also nothing like what you described.

In addition, this solution will still give you text, not a date value.

I don't see how Fluff's formula solves your particular problem.
I might not be precise in discribing what I wanted, fluff's solution solved my problem. You are correct that final result is not date but a text. This is ok. Regarding concatnation, that is what I wanted. Anyway thanks for your reply and the time you put into replying my question.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top