#1   Report Post  
Posted to microsoft.public.excel.misc
BMI BMI is offline
external usenet poster
 
Posts: 1
Default lookup macro

Hi,

I have two sheets and need to compare them:
1. The first sheet looks similar to:
Group EVENT START DATE
1 A 12-Jan-08
1 B 22-Feb-08
1 C 12-Mar-08
1 D 19-Nov-08
2 E 25-Nov-08
2 A 25-Dec-08
2 G 25-Jan-09
2 B 25-Feb-09


2. The second sheet looks like:
Group Attendance Attendance Label
1 15-Dec-07 V1
1 10-Jan-08 V2
1 13-May-08 V3
1 20-Aug-08 V4
1 20-Dec-08 V5
2 25-Aug-08 V1
2 30-Dec-08 V2
2 15-Jan-09 V3
2 30-Mar-09 V4

I need to compare the event of each group against the Attendance dates i.e.
to find out between which attendance label the event occurred.
the comparison should yield the following:

Group EVENT START DATE 1st 2nd
Closest
Closest
Attendance
Attendance
Label
label
1 A 12-Jan-08 V1 V2
1 B 22-Feb-08 V2 V3
1 C 12-Mar-08 V2 V3
1 D 19-Nov-08 V4 V5
2 E 25-Nov-08 V1 V2
2 A 25-Dec-08 V1 V2
2 G 25-Jan-09 V2 V3
2 B 25-Feb-09 V2 V3

I can compare using array formulas, but with large amout of data the, not
able to get the results right. Is there a macro that can be written. Please
help
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup macro gramps Excel Discussion (Misc queries) 3 September 14th 07 04:36 PM
How to create a macro to help with lookup. Jman Excel Worksheet Functions 3 May 30th 07 05:55 AM
Macro to lookup duplicates Constantly Amazed Excel Worksheet Functions 6 July 17th 06 09:50 PM
lookup macro?? darkbearpooh1 Excel Worksheet Functions 9 February 22nd 06 05:56 AM
Macro lookup dudemango Excel Discussion (Misc queries) 6 February 6th 06 09:20 PM


All times are GMT +1. The time now is 06:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"