Hi Wonderful people.
I have searched high and beyond but can't seem to find the correct answer to this issue.
I have a list of dates (list 1) and by each date I want to put a formula in a cell that will search the array and return the period number
I have a table which list (list2) an array of dates and their period numbers.
The forumla should check if the date in list 1 is between the dates any of the dates in list 2.
example list 1.
Col.A Col.B
09-Apr-08
10-Aug-08
11-Jun-08
12-Feb-08
13-Apr-05
DatePeriod name
List 2 (array
Col E Col F Col G
30-Mar-08 26-Apr-08 08/09 P1
27-Apr-08 2 4-May-08 08/09 P2
25-May-08 21-Jun-08 08/09 P3
22-Jun-08 19-Jul-08 08/09 P4
20-Jul-08 16-Aug-08 08/09 P5
17-Aug-08 13-Sep-08 08/09 P6
I want the forumla (which will be in col. B) to look at the value in Col A and see if is between any of the dates in the Array in col E:G and return the value in column G.
I have tried a VLookup but that did not work. (=VLOOKUP(A2,E1:G92,3)
I have tried match and index all to no avail.
I would appreciate any help with either some VBA code or an excel formula.
Many thanks!
I have searched high and beyond but can't seem to find the correct answer to this issue.
I have a list of dates (list 1) and by each date I want to put a formula in a cell that will search the array and return the period number
I have a table which list (list2) an array of dates and their period numbers.
The forumla should check if the date in list 1 is between the dates any of the dates in list 2.
example list 1.
Col.A Col.B
09-Apr-08
10-Aug-08
11-Jun-08
12-Feb-08
13-Apr-05
DatePeriod name
List 2 (array
Col E Col F Col G
30-Mar-08 26-Apr-08 08/09 P1
27-Apr-08 2 4-May-08 08/09 P2
25-May-08 21-Jun-08 08/09 P3
22-Jun-08 19-Jul-08 08/09 P4
20-Jul-08 16-Aug-08 08/09 P5
17-Aug-08 13-Sep-08 08/09 P6
I want the forumla (which will be in col. B) to look at the value in Col A and see if is between any of the dates in the Array in col E:G and return the value in column G.
I have tried a VLookup but that did not work. (=VLOOKUP(A2,E1:G92,3)
I have tried match and index all to no avail.
I would appreciate any help with either some VBA code or an excel formula.
Many thanks!
Last edited: