Macro for deleting part of a cell's content?

towersjd

New Member
Joined
Nov 29, 2016
Messages
3
Hi all, I'm brand new here so apologies if I am posing this question in the wrong place.

I am moving information from an exported automated report to a new, separate worksheet. The information I need help with is regarding the date column. The automated report generates a date AND a time.

ex: "8/30/2016 1:53:00 PM"

I need it to solely show the date and somehow remove the time stamp.

ex: "8/30/2016"

I tried playing around with different formats but much to my dismay none of them worked. Is there any other option for accomplishing this besides manually deleting the excess text? If not, does anyone have a macro that would do this for me? I have over 1000 cells of data and would prefer not to spend my time manually deleting it.

Any help or advice would be appreciated!

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
No it doesn't. This is what I expected to do, but I'm thinking that maybe the millisecond part throws it off? Or maybe I'm just completely missing something.
 
Upvote 0
Try to use this formula: =LEFT(A1,FIND(" ",A1))
 
Upvote 0
Oh, I just have to click in each cell. Then it formats. I have a macro for that. Whoops. Sorry for the confusion
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

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