Index/Match, Collect, or Vlookup

I am trying to pull dates over from another sheet and matching on a unique value that is present in both sheets. However, the source sheet has the same unique value repeated multiple times and I want to return the date that IS populated.
1) {Schedule - DRL CMP WEQ Range 3} : this is the source range that contains the data I need populated in the target sheet
2) [E_ID]@row: This is what I am matching on in the target sheet (unique identifier highlighted in yellow)
3) {Schedule - DRL CMP WEQ Range 2}: This is the range where the unique identifier is in the source sheet
Index/Match: =INDEX({Schedule - DRL CMP WEQ Range 3}, MATCH([E_ID]@row, {Schedule - DRL CMP WEQ Range 2}, 0)). This formula matches on the first instance of the match and returns the blank cells (orange highlight). I need to return the dates that are the green highlights.
I'm thinking a collect formula might be the answer but I can't seem to get it to work.
Thanks!
Best Answer
-
I would suggest an INDEX/COLLECT.
=INDEX(COLLECT({Schedule - DRL CMP WEQ Range 3}, {Schedule - DRL CMP WEQ Range 3}, @cell <> "", {Schedule - DRL CMP WEQ Range 2}, @cell = [E_ID]@row), 1)
Answers
-
I would suggest an INDEX/COLLECT.
=INDEX(COLLECT({Schedule - DRL CMP WEQ Range 3}, {Schedule - DRL CMP WEQ Range 3}, @cell <> "", {Schedule - DRL CMP WEQ Range 2}, @cell = [E_ID]@row), 1)
-
That worked! Thank you Paul!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.8K Get Help
- 474 Global Discussions
- 206 Use Cases
- 517 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 83 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!