Look up in 2 columns and return to date

JDJong

New Member
Joined
May 2, 2018
Messages
39
Hi all,

I am struggling with the formula. I tried using match index, but it wouldn't work.

So i have attached a workbook, basically to look up the data in column A course number and column E course type, when matched, extract the date start and date end to the results sheet.

Hopefully you guys can help me out.!

Thank you very much !

Result would be:

Course codeCourse typedate startdate endCourse codeCourse typedate startdate end
8776789CC3-5-20182-6-20188767UI24AC7-5-20187-6-2018

<tbody>
</tbody><colgroup><col><col><col span="4"><col><col><col><col></colgroup>

Lookup table:
Course No.Course codeDescriptAmountTypedate startdate end
87767890098AC0000course_charge_03.05-02.06.2018_CN_8776789 $ 45.00 CC3-5-20182-6-2018
87767890098AC0001course_charge_03.05-02.06.2018_CN_8776789 $ 29.45 CC3-5-20182-6-2018
8767UI90098AC0002course_charge_03.05-02.06.2018_CN_8767U19 $ 63.5 CC3-5-20182-6-2018
8767UI100098AC0003course_charge_03.05-02.06.2018_CN_8767U110 $ 58.900,00 CC3-5-20182-6-2018
8767UI1100DC000111course_charge_03.05-02.06.2018_CN_8767U111 $ 72.769,40 CC3-5-20182-6-2018
8767UI1200DC000112course_charge_03.05-02.06.2018_CN_8767U112 $ 80.646,50 CC3-5-20182-6-2018
8767UI1300DC000113course_charge_03.05-02.06.2018_CN_8767U113 $ 78.771,00 CC3-5-20182-6-2018
8767UI1400DC000114course_charge_03.05-02.06.2018_CN_8767U114 $ 82.522,00 CC3-5-20182-6-2018
8767UI1500DC000115applicance_charge_07.05-06.06.2018_AC_8767U115 $ 77.500,00 AC7-5-20187-6-2018
8767UI1600DC000116applicance_charge_07.05-06.06.2018_AC_8767U116 $ 77.500,00 AC7-5-20187-6-2018
8767UI1700UU000111applicance_charge_07.05-06.06.2018_AC_8767U117 $ 77.500,00 AC7-5-20187-6-2018
8767UI1800DC000117applicance_charge_07.05-06.06.2018_AC_8767U118 $ 73.625,00 AC7-5-20187-6-2018
8767UI1900DC000118applicance_charge_07.05-06.06.2018_AC_8767U119 $ 69.750,00 AC7-5-20187-6-2018
8767UI2000DC000119applicance_charge_07.05-06.06.2018_AC_8767U120 $ 27.964,60 AC7-5-20187-6-2018
8767UI2100DC000120applicance_charge_07.05-06.06.2018_AC_8767U121 $ 49.954,60 AC7-5-20187-6-2018
8767UI2200DC000121applicance_charge_07.05-06.06.2018_AC_8767U122 $ 200.000,00 AC7-5-20187-6-2018
8767UI2300DC000122applicance_charge_07.05-06.06.2018_AC_8767U123 $ 83.700,00 AC7-5-20187-6-2018
8767UI2400DC000123applicance_charge_07.05-06.06.2018_AC_8767U124 $ 52.000,00 AC7-5-20187-6-2018
8767UI2500DC000124applicance_charge_07.05-06.06.2018_AC_8767U125 $ 71.300,00 AC7-5-20187-6-2018

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col></colgroup>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hey Bobumlas,

Thanks for your quick Response. I have been provided with =IFERROR(INDEX('lookup table'!$F$2:$F$20;MATCH(results!$A$2&results!$B$2;'lookup table'!$A$2:$A$20&'lookup table'!$E$2:$E$20;0));"") which works great!

I am trying to set conditional formating for those period that doesn't fall into the whole month such as 5.5 - 4.6 or 15.5 - 14.6
 
Upvote 0

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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