I want help in excel,
In the table mentioned below I want to look for duplicates in columns C and A and assign the value from D to B as per the data in A when compared to C.
Must look like after formula: Solution:
I want help in excel,
In the table mentioned below I want to look for duplicates in columns C and A and assign the value from D to B as per the data in A when compared to C.
Must look like after formula: Solution:
With Microsoft365, XLOOKUP()
is best option like-
=XLOOKUP(A1,$C$1:$C$4,$D$1:$D$4,"")
For older version you can use INDEX/MATCH
or VLOOKUP()
in this way.
=INDEX($D$1:$D$4,MATCH(A1,$C$1:$C$4,0))
=VLOOKUP(A1,$C$1:$D$4,2,FALSE)
Another option is to use FILTER()
function.
=@FILTER($D$1:$D$4,$C$1:$C$4=A1,"")