Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
abehart
 
Posts: n/a
Default 2 column lookup - match to date range


I have 2 spreadsheets. 1 is a list of procedures. This list has the
columns id_code, name, date_procedure

The other is a list of test results with the columns id_code,
date_test,result.

How can I use the look up functions (INDEX MATCH for eg) to match
procedures to test results only if the test preceeded the procedure by
<=14 days and =0 days ?

Thank you for your thoughts


--
abehart
------------------------------------------------------------------------
abehart's Profile: http://www.excelforum.com/member.php...o&userid=33482
View this thread: http://www.excelforum.com/showthread...hreadid=532835

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default 2 column lookup - match to date range

I would first combine both lists according to the common id_code, so all the
relative data was in one row for each id_code.....then add a column at the
end to determine the difference in the test and procedure dates......

hth
Vaya con Dios,
Chuck, CABGx3


"abehart" wrote in
message ...

I have 2 spreadsheets. 1 is a list of procedures. This list has the
columns id_code, name, date_procedure

The other is a list of test results with the columns id_code,
date_test,result.

How can I use the look up functions (INDEX MATCH for eg) to match
procedures to test results only if the test preceeded the procedure by
<=14 days and =0 days ?

Thank you for your thoughts


--
abehart
------------------------------------------------------------------------
abehart's Profile:

http://www.excelforum.com/member.php...o&userid=33482
View this thread: http://www.excelforum.com/showthread...hreadid=532835



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
abehart
 
Posts: n/a
Default 2 column lookup - match to date range


That might be an option with smaller data sets. My results table has
200,000 rows spread across 5 worksheets and the second list 3000 rows.
Each also has 20 columns each.


--
abehart
------------------------------------------------------------------------
abehart's Profile: http://www.excelforum.com/member.php...o&userid=33482
View this thread: http://www.excelforum.com/showthread...hreadid=532835

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default 2 column lookup - match to date range

You could try this

=ISNUMBER(MATCH(1,(A2=procedure_ids)*(B2+14=proce dure_dates)*(B2<=procedure
_dates),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

where A2 is the test results id code, and B2 the date. So this formula goes
in C2 on that sheet.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"abehart" wrote in
message ...

That might be an option with smaller data sets. My results table has
200,000 rows spread across 5 worksheets and the second list 3000 rows.
Each also has 20 columns each.


--
abehart
------------------------------------------------------------------------
abehart's Profile:

http://www.excelforum.com/member.php...o&userid=33482
View this thread: http://www.excelforum.com/showthread...hreadid=532835



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
run a macro in a locked cell Ray Excel Discussion (Misc queries) 8 January 10th 06 12:02 AM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
adding occurrences for date range Mike Excel Discussion (Misc queries) 1 April 28th 05 09:14 PM
adding occurrences for date range Mike Excel Discussion (Misc queries) 0 April 8th 05 11:33 PM


All times are GMT +1. The time now is 05:25 PM.

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

About Us

"It's about Microsoft Excel"