|
-
Aug 3rd, 2000, 09:40 AM
#1
Thread Starter
Fanatic Member
Hi, format type thing really, see if you can understand me...
I've got some dates in cells (hundreds of them), and excel currently recognises them as text, eg. "12/02/99", not dates. However, if I select each one and press F2 followed by enter, excel then converts them to proper date formated cells, and they then appear in the formula bar in the format "12/02/1999". Now, I can spend a week or two press F2 on each and every bloody one of them, or someone could tell me how to automate this. I don't really understand why I need to do the F2 thing...
-
Aug 3rd, 2000, 11:55 AM
#2
Addicted Member
Select your column and on the toolbar select "Format-Cells" and change the format type to Date.
-
Aug 4th, 2000, 12:35 PM
#3
Frenzied Member
Or, if they're not all in the same column, record a macro and run as needed...
-
Aug 7th, 2000, 03:43 AM
#4
Thread Starter
Fanatic Member
Sorry guys, I fear you rather missed the point. Formatting them as Shark suggested made no difference until I did the F2/Return thing on EVERY one of them. Recording a macro to do this simply resulted in code that explicitly put the contents of the cell, eg:
Code:
ActiveCell.FormulaR1C1 = "21/12/99"
Which obviously wasn't going to be any good either. I did, however, discover a solution:
Code:
Do While Not Trim(Selection) = ""
Selection = CDate(Selection)
ActiveCell.Range("A2").Select
Loop
Thanks for your brainwaves, though...
-
Aug 7th, 2000, 01:39 PM
#5
Fanatic Member
I think you can write a DO LOOP with
activecell.value = activell.value
will do the trick too.
Another alternative is to copy the column to another column that has been formatted with date already.
Chemically Formulated As:
Dr. Nitro
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|