See attached file. I've used column G in the INFO and DROP_DOWNS sheet as a helper column (coloured blue), with this formula in G2 of the INFO sheet:
which is then copied down beyond your data to allow for new data to be added (the hyphens help to show this). The formula checks to see if the ID is the same as that chosen in the Drop_downs sheet, and if the date fits within the start and end date and if so it allocates a number in sequence so that each matching record is uniquely numbered.
I put this formula in G6 of the drop-downs sheet:
and this reports which row in the INFO sheet those sequential numbers occur.
This formula is in A6:
which is also copied across to E6 with appropriate formatting applied to each cell. This formula retrieves the data from the appropriate column and from the row of the INFO sheet given in column G. I've copied the block of formulae down to row 30, as can be seen from the hyphens. You can hide the helper columns if you don't want to see them.
Make changes to B1:B3 to see the data display change appropriately.
I've also tidied up your definitions of the named ranges A and B slightly using Name Manager, but these seemed to be working okay.
Hope this helps.
Pete
Bookmarks