Cells contaning Fri 16 Jul 10 and similar as text

rundwald

New member
Member
VIP
Local time
6:56 PM
Messages
394
Location
UK, Hampshire
I have a s/sheet ( Excel2007), whose source data was taken from a link. The date column is in the format as per title. In that form it will not sort itself or associated columns in to date order. Has anyone a way to make the data in the column sort itself as I want?

Also with the example given, how with text to column function does one make just two columns, one with just the weekday and the other with day, month, year?
 

My Computer My Computer

At a glance

Home Premium 64 bit2.9 gigahertz Intel Core2 Duo 64 kilobyte pri...4096 Megabytes Usable Installed Memory Slot '...ATI Radeon HD 4300/4500 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Inspiron 560MT
OS
Home Premium 64 bit
CPU
2.9 gigahertz Intel Core2 Duo 64 kilobyte primary memory cac
Motherboard
Board: Dell Inc. 0K83V0 A00 Serial Number: ..CN750939CP069B
Memory
4096 Megabytes Usable Installed Memory Slot 'DIMM0' has 102
Graphics Card(s)
ATI Radeon HD 4300/4500 Series
Sound Card
High Definition Audio Device NVIDIA High Definition Audio (
Monitor(s) Displays
DELL ST2210 [Monitor] (21.7"vis, s/n P479R01Q0VCU, January 2
Screen Resolution
1920x1080
Hard Drives
628.58 Gigabytes Usable Hard Drive Capacity
554.78 Gigabytes Hard Drive Free Space
Keyboard
Std Dell UK
Mouse
KEYBOARD, 105, UNITED KINGDOM, KWE9C0
Internet Speed
~8000 kbps
Antivirus
Avast Free
Browser
Chrome
Other Info
Office 2007: Photo Editing; Serif PhotoPlus X7
I only know a somewhat clunky way of doing this (not surprising, given my name :)):

  1. Highlight the column containing the date string that you want to fix
  2. Go to Editing > Find and Select > Replace... then select the Replace tab
  3. In the "Find what:" box type Mon followed by a space
  4. Leave the "Replace with:" box empty
  5. Click on "Replace All"
  6. Repeat this for Tue , Wed, Thu , Fri , Sat, and Sun (each one followed by a space)
  7. Now all your dates will have changed from Fri 16 Jul 10 format to 16-Jul-10 format and you can sort them by date
To put the right days of the week in another column:

  1. In the first cell where you want the day of the week, type =WEEKDAY(, then highlight the cell with the date, then close the bracket and hit Enter
  2. That will put a number between 1 (which is Sunday) and 7 (Saturday) in the cell
  3. Drag down to populate all the cells you need days of the week for
  4. Use Find and Replace again on that column, replacing 1 with Sunday, 2 with Monday and so on
That will achieve your aim, though as I say it is not exactly elegant...
 

My Computer My Computer

At a glance

Windows 7 Enterprise x64Intel i7 9206 GBnVidia GTX260 + nVidia 3D
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Enterprise x64
CPU
Intel i7 920
Motherboard
Asus P6T Deluxe v2
Memory
6 GB
Graphics Card(s)
nVidia GTX260 + nVidia 3D
Sound Card
Onboard
Monitor(s) Displays
Samsung SyncMaster 2233RZ
Screen Resolution
1680 x 1050
Hard Drives
1 x 64GB SSD primary
2 x 1 TB (mirrored)
PSU
700W
Other Info
Edimax 802.11n Wireless PCI Card
Netgear DG834G router
Thanks.

I was thinking along the same lines as a last resort, but did not know that removal of the weekday could reformat the rest of the cell into a date form.

@all: is there a way by which text to columns delimited by a space could separate weekday in to one column and day, month, year in to one other ot the usual three?

Further edit

Extracting the weekday certainly allows the column containing the dd mm yy dates to be sorted, but no matter what date format is selected , what one sees on screen remains the same. Moreover if one needs to use the Weekday formula the #Value warning is returned with info that the year string has only two digits.
 
Last edited:

My Computer My Computer

At a glance

Home Premium 64 bit2.9 gigahertz Intel Core2 Duo 64 kilobyte pri...4096 Megabytes Usable Installed Memory Slot '...ATI Radeon HD 4300/4500 Series
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Inspiron 560MT
OS
Home Premium 64 bit
CPU
2.9 gigahertz Intel Core2 Duo 64 kilobyte primary memory cac
Motherboard
Board: Dell Inc. 0K83V0 A00 Serial Number: ..CN750939CP069B
Memory
4096 Megabytes Usable Installed Memory Slot 'DIMM0' has 102
Graphics Card(s)
ATI Radeon HD 4300/4500 Series
Sound Card
High Definition Audio Device NVIDIA High Definition Audio (
Monitor(s) Displays
DELL ST2210 [Monitor] (21.7"vis, s/n P479R01Q0VCU, January 2
Screen Resolution
1920x1080
Hard Drives
628.58 Gigabytes Usable Hard Drive Capacity
554.78 Gigabytes Hard Drive Free Space
Keyboard
Std Dell UK
Mouse
KEYBOARD, 105, UNITED KINGDOM, KWE9C0
Internet Speed
~8000 kbps
Antivirus
Avast Free
Browser
Chrome
Other Info
Office 2007: Photo Editing; Serif PhotoPlus X7
Back
Top