Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Microsoft Office и VBA программирование > Microsoft Office Excel
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 10.08.2009, 00:51   #1
london735
Пользователь
 
Регистрация: 20.06.2008
Сообщений: 45
По умолчанию Sorting Different Format Dates

Hello!
I have the following list of dates take from different data sources that need to be sorted starting from the earliest to the most recent. The dates are in all kinds of formats and stored as text. I wonder if there is a way to transform these date types into a single unified date format and then sort them by a macro – or any other way?
Thank you!
Вложения
Тип файла: zip DATES.zip (56.1 Кб, 7 просмотров)
london735 вне форума Ответить с цитированием
Старый 10.08.2009, 01:22   #2
Tirendus
Форумчанин
 
Аватар для Tirendus
 
Регистрация: 20.03.2009
Сообщений: 272
По умолчанию

Hey. Try importing all of the different data types into different columns. I think it would be really hard to convert all those dates while they aren't systematical. Then make one simple macro for each column to convert them into one type. My advice, make the french format like 1998.12.01 so you could sort them from earliest to the most recent.
Tirendus вне форума Ответить с цитированием
Старый 10.08.2009, 05:59   #3
SAS888
Старожил
 
Аватар для SAS888
 
Регистрация: 05.12.2007
Сообщений: 4,180
По умолчанию

See attachment. Start macro "ConvDates".
P.S. Now You may sort given any way.
Вложения
Тип файла: rar DATES_2.rar (35.3 Кб, 15 просмотров)
Чем шире угол зрения, тем он тупее.

Последний раз редактировалось SAS888; 10.08.2009 в 06:58. Причина: Added
SAS888 вне форума Ответить с цитированием
Старый 10.08.2009, 21:10   #4
london735
Пользователь
 
Регистрация: 20.06.2008
Сообщений: 45
По умолчанию

thank you for this wonderful macro!!!!! works greatly!)
london735 вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
zip format Jelena Помощь студентам 2 04.01.2009 18:26
Format() eda Microsoft Office Excel 6 28.08.2008 11:21
Ошибка 'No argument for format "%s"'?? Lencom Общие вопросы Delphi 2 25.06.2008 13:16
Microsoft Tape Format svennick Свободное общение 0 20.05.2008 21:33
Format malevich Общие вопросы Delphi 5 31.12.2006 00:37