Forum Discussion
TIGER-18
Nov 12, 2023Copper Contributor
lookup with different results
Hi, I'm struggling with the below issue in Excel. I have 2 tables and I would like to make a lookup between them but the challenge here is the value array is duplicate and I want to return the invoi...
- Nov 12, 2023
=INDEX($E$2:$E$10,MATCH(1,(A2=$D$2:$D$10)*(COUNTIF($A$2:A2,A2)=$F$2:$F$10),0))You can try this formula along with a helper column. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel for the web or Excel 2021.
=COUNTIF($D$2:D2,D2)This is the formula that creates the helper column in the example. The formula is in cell F2 and filled down.
OliverScheurich
Nov 12, 2023Gold Contributor
=INDEX($E$2:$E$10,MATCH(1,(A2=$D$2:$D$10)*(COUNTIF($A$2:A2,A2)=$F$2:$F$10),0))You can try this formula along with a helper column. Enter the formula with ctrl+shift+enter if you don't work with Office 365 or Excel for the web or Excel 2021.
=COUNTIF($D$2:D2,D2)This is the formula that creates the helper column in the example. The formula is in cell F2 and filled down.