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

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

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

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

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

Ответ
 
Опции темы Поиск в этой теме
Старый 21.10.2009, 03:05   #1
london735
Пользователь
 
Регистрация: 20.06.2008
Сообщений: 45
По умолчанию Lookup Question

Hello!
I have two series of dates – one daily series and the other is the hourly series – running in parallel. The daily series has the values which correspond to them – YES and NO columns which can be either 1 or 0. I need for each line on the hourly series to have the corresponding value of the YES and NO from the daily sheet. I am not sure how this can be done.
Any help is hugely appreciated,
PS: I have attached the file with the data.
Вложения
Тип файла: zip LOOK.ZIP (53.5 Кб, 9 просмотров)
london735 вне форума Ответить с цитированием
Старый 21.10.2009, 05:19   #2
SAS888
Старожил
 
Аватар для SAS888
 
Регистрация: 05.12.2007
Сообщений: 4,180
По умолчанию

See attachment.
Sheet "HOURS" has formulas in columns "E:F". But... Beforehand, You should execute macro "ConvDates" that format cells alike, and that formulas had no mistake.
Вложения
Тип файла: rar LOOKUP_2.rar (79.5 Кб, 15 просмотров)
Чем шире угол зрения, тем он тупее.
SAS888 вне форума Ответить с цитированием
Старый 21.10.2009, 14:02   #3
london735
Пользователь
 
Регистрация: 20.06.2008
Сообщений: 45
По умолчанию

hello!))) thanks for your as usual very helpful reply. Do you think this kind of a lookup can be doen with teh formulas alone? I ask htis because I am just showing you a prototype of the oroginal workbook which is much more complex. Thanks a lot!)
london735 вне форума Ответить с цитированием
Старый 22.10.2009, 09:15   #4
SAS888
Старожил
 
Аватар для SAS888
 
Регистрация: 05.12.2007
Сообщений: 4,180
По умолчанию

Naturally, when you will use the formulas in the other sheet, you must correct the address and ranges, on which formulas cite. Also if it is required, macro can do all itself. But then you will must to change the references to cells in code of macro. Else possible, that will take to define the range of the table. Do you want, that I will have developed such macro? You must explain me, how to do it.
Чем шире угол зрения, тем он тупее.
SAS888 вне форума Ответить с цитированием
Старый 25.10.2009, 17:32   #5
london735
Пользователь
 
Регистрация: 20.06.2008
Сообщений: 45
По умолчанию

Dear Sas,
Thank you for your answer...I am sorry I was away I could not answer you immediately..I just need a solution that can use only the formulas - the macro is great but here I need the only-formula solution...so do you think it is possible to do?))
Thanks a lot!)
london735 вне форума Ответить с цитированием
Старый 26.10.2009, 08:18   #6
SAS888
Старожил
 
Аватар для SAS888
 
Регистрация: 05.12.2007
Сообщений: 4,180
По умолчанию

If cells in columns "A" have an alike format, that you don't need for macro.
Otherwise formulas will not help you.
Чем шире угол зрения, тем он тупее.
SAS888 вне форума Ответить с цитированием
Ответ


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



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Lookup Delphi7 BD Paradox 7 mnbvcxz11 БД в Delphi 3 21.09.2009 19:15
Lookup-поля в DBGrid SlavaSH БД в Delphi 4 10.09.2009 20:21
MS Visio VBA question to profesional rawas Microsoft Office Excel 4 17.03.2009 16:56
Lookup BAV БД в Delphi 0 07.09.2008 12:31