Date-time format as you like...

Mark Green

Board Regular
Joined
Apr 15, 2016
Messages
125
When I look into Date formats offered I don't see the one I like:

Nov 30, 2016 10:59 AM

Is it possible to format a column so that the date-times will show as above?

TIA
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
You can set a custom format (bottom of the list on the left when you open the formatting dialog box)

There will be a place to type your own format

I think typing this
mmm dd, yyyy h:mm AM/PM
should give the format you want.
 
Upvote 0
You can set a custom format (bottom of the list on the left when you open the formatting dialog box)

There will be a place to type your own format

I think typing this
mmm dd, yyyy h:mm AM/PM
should give the format you want.

Thanks very much that worked out nicely. :)
 
Upvote 0
You can set a custom format (bottom of the list on the left when you open the formatting dialog box)

There will be a place to type your own format

I think typing this
mmm dd, yyyy h:mm AM/PM
should give the format you want.

This might be a little trickier.
I would like to have the 'AM/PM' as 'am/pm' (lower case).
I tried entering it but Excel put it back as upper case.
 
Upvote 0
HI,

you can use text function to format date as desired

=TEXT(X7, "mmm/dd/yyyy hh:mm am/pm")

=MID((TEXT(X7, "mmm/dd/yyyy hh:mm am/pm")),1,LEN((TEXT(X7, "mmm/dd/yyyy hh:mm am/pm")))-3)&" "&LOWER(RIGHT(TEXT(X7, "mmm/dd/yyyy hh:mm am/pm"),2)) for lowering am/pm
 
Upvote 0
=MID((TEXT(X7, "mmm/dd/yyyy hh:mm am/pm")),1,LEN((TEXT(X7, "mmm/dd/yyyy hh:mm am/pm")))-3)&" "&LOWER(RIGHT(TEXT(X7, "mmm/dd/yyyy hh:mm am/pm"),2)) for lowering am/pm


Thanks Anand. I got it to work, in so far as I can put the formula in a cell and have it return the correct date format in that cell.
Now the next challenge for me is to be able to use VBA to copy that formula into a cell. Not having luck so far.

After I can do that, the game plan is to copy down the formula (temporarily) as many rows as the dates are.
Then copy/paste special (values) back into the original date cells.
Then clear out the temp date formulae.

I'm thinking there must be an easier way just to change from AM to am?
 
Upvote 0
Tetra's suggestion in post #6 works perfectly for me...

I tried to implement it yesterday but didn't have any luck.
I didn't know how to use it.

But just now I went back to it and figured out what to do with it.
It works perfectly!

So I would like to thank both you and Tetra for your
help!
I really appreciate it. :)
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,720
Members
448,986
Latest member
andreguerra

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