Altering text DATE into usable value

Sweedler

Board Regular
Joined
Nov 13, 2020
Messages
114
Office Version
  1. 2016
Platform
  1. Windows
  2. MacOS
I have a download dump of data. In column C (starting from row 9) I have dates, but the download formats them as text into Excel (don't ask me why) ...

Using VBA ... What I need, ideally, is push every cell value through the formula "=Value(C9)" [and so on] and put that new value into the same cell. Is there a way to do this? I can make it work if the results are dumped in some random column off screen, but it would not be the most aesthetically pleasing. Please help me
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Have you tried using the text to columns option on the Data tab?
 
Upvote 0
Have you tried using the text to columns option on the Data tab?
I have note tried that, but I have about 30-40 functions baked into a VBA right now that this needs to be a part of. Everything will be sorted with one button press.
 
Upvote 0
You can use text to columns in VBA as well. See if it works & if so just record yourself doing it & you have the code.
 
Upvote 0
Solution
You can use text to columns in VBA as well. See if it works & if so just record yourself doing it & you have the code.
But would not text to column increase the number of columns? That is also a no go. The screen must remain as it is.
 
Upvote 0
But would not text to column increase the number of columns?
No. in T2C select delimited, next, clear all checkboxes, next, select the format the date is in, Finish
 
Upvote 0
No. in T2C select delimited, next, clear all checkboxes, next, select the format the date is in, Finish
I tried what you said and got it recorded and put it into the code. Working nicely
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

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