Comments to be picked to another table with start and end dates as range

BabuV

New Member
Joined
Aug 17, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I have 2 Tables.

Table 1 :
Start DateEnd DateComments
13-Aug-20​
16-Aug-20​
13-Aug'20 to 16-Aug'20
17-Aug-20​
23-Aug-20​
17-Aug'20 to 23-Aug'20
24-Aug-20​
28-Aug-20​
24-Aug'20 to 28-Aug'20
29-Aug-20​
31-Aug-20​
29-Aug'20 to 31-Aug'20
1-Sep-20​
15-Sep-20​
01-Sep'20 to 15-Sep'20
16-Sep-20​
30-Sep-20​
16-Sep'20 to 30-Sep'20
1-Oct-20​
15-Oct-20​
01-Oct'20 to 15-Oct'20
16-Oct-20​
31-Oct-20​
16-Oct'20 to 31-Oct'20
I need comments to be populated in below table 2nd column with respect to start and end date range.
Submitted dateComments
16-Oct-20​
23-Aug-20​
7-Sep-20​
9-Oct-20​
31-Oct-20​

CAn someone please help with the formula?
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try This

Book1
ABCD
2Start DateEnd DateComment
313/08/202016/08/2020a
417/08/202023/08/2020b
524/08/202028/08/2020c
629/08/202031/08/2020d
701/09/202015/09/2020e
816/09/202030/09/2020f
901/10/202015/10/2020g
1016/10/202031/10/2020h
11
12
13Submitted Date
1416/10/2020h
1523/08/2020b
1607/09/2020e
1709/10/2020g
1831/10/2020h
19
20
Sheet5
Cell Formulas
RangeFormula
C14:C18C14=LOOKUP(A14,$A$3:$A$10,$C$3:$C$9)
 
Upvote 0
Hello you have to customize the date format if you are going to use this format for your formula.
for that ->format cell->custom->select dd-mmm-yy format
then you can try this formula
Book1
ABCDEF
1Start DateEnd DateCommentsSUBMITTED DATEComments
213-Aug-2016-Aug-2013-Aug'20 to 16-Aug'2016-Oct-2016-Oct'20 to 31-Oct'20
317-Aug-2023-Aug-2017-Aug'20 to 23-Aug'2023-Aug-2017-Aug'20 to 23-Aug'20
424-Aug-2028-Aug-2024-Aug'20 to 28-Aug'2007-Sep-2001-Sep'20 to 15-Sep'20
529-Aug-2031-Aug-2029-Aug'20 to 31-Aug'2009-Oct-2001-Oct'20 to 15-Oct'20
601-Sep-2015-Sep-2001-Sep'20 to 15-Sep'2031-Oct-2016-Oct'20 to 31-Oct'20
716-Sep-2030-Sep-2016-Sep'20 to 30-Sep'20
801-Oct-2015-Oct-2001-Oct'20 to 15-Oct'20
916-Oct-2031-Oct-2016-Oct'20 to 31-Oct'20
10
Sheet1
Cell Formulas
RangeFormula
F2:F6F2=INDEX($C$2:$C$9,SUMPRODUCT(($E2>=$A$2:$A$9)*($E2<=$B$2:$B$9)*MATCH(ROW($C$2:$C$9),ROW($C$2:$C$9))))
 
Upvote 0

Forum statistics

Threads
1,214,864
Messages
6,121,984
Members
449,058
Latest member
oculus

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