Return several values to one cell which match criteria and date range

questionss

New Member
Joined
Jul 15, 2014
Messages
2
Hello.

I have two tables with similar information. File A is the raw, and File B with selected items. Is it possible to return all code under title “DEF” from File A in the way ”A112, A144, A134, A136, A452, A584, A714, A848, A980, A988” to file B cell B3 with title name(A3) and date range (G3:H3)?

I tried this:
=INDEX('[FILE A.xls]Sheet 1'!$B$1:$B$48002,MATCH($H3,IF('[FILE A.xls]Sheet 1'!$A$1:$A$48002=$A3,'[FILE A.xls]Sheet 1'!$D$1:$D$48002),0))

But it can only return the first code that match the starting date. I am using excel 2010, please give me some advice.

Thanks so much.

File A
TITLECODE DURATION DATE
ABCC1230:39:001/4/2010
DEFA1121:15:0010/1/1999
DEFA1441:15:0010/1/2000
DEFA1341:15:0010/1/2001
DEFA1361:15:0010/1/2002
DEFA4521:15:0010/1/2003
DEFA5841:15:0010/1/2004
DEFA7141:15:0010/1/2005
DEFA8481:15:0010/1/2006
DEFA9801:15:0010/1/2007
DEFA9881:15:0010/1/2008
GHIB1241:00:003/3/1980
GHIB3460:58:303/4/1980
GHIB5471:02:003/5/1980

<tbody>
</tbody>


File B
TitleCodeTypeFormat Quantity Duration Staring Date End Date
ABC A A10:39:001/4/20101/4/2010
DEF B A1012:30:0010/1/19999/10/2008
GHI C A33:00:303/3/19803/5/1980

<tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,216,071
Messages
6,128,628
Members
449,460
Latest member
jgharbawi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top