In the enclosed worksheet, rows 2-7 lies the data of "brown", while rows 8-22 lies the data of "yellow" and so on. On Column C, we use an INDEX MATCH formula to get the first corresponding data in each case. Similarly on column D, the last corresponding data are retrieved.
Now how we should get the second corresponding data, for instance in E8?
Bookmarks