ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to find duplicate cells in Column a & retrieve column B (https://www.excelbanter.com/excel-discussion-misc-queries/221884-how-find-duplicate-cells-column-retrieve-column-b.html)

ghost

How to find duplicate cells in Column a & retrieve column B
 
How to find duplicate cells in Column a & retrieve column B
A B C D E
1 abc cba =vlookup(c1,a1:a4,1,false) 2
2 cba€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€ ¦€¦€¦

What I want to do is retrieve the A value in E according to the value in D1?€ƒ


Alojz

How to find duplicate cells in Column a & retrieve column B
 
Hi, I assume u want to display 2 in E1 as u r looking for cba in column B,
right?
Formula u need to insert in E1 may be: =SUM((C1=B1:B2)*A1:A2), then press
ctrl+shift+enter (array formula)

"ghost" wrote:

How to find duplicate cells in Column a & retrieve column B
A B C D E
1 abc cba =vlookup(c1,a1:a4,1,false) 2
2 cba€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€ ¦€¦€¦

What I want to do is retrieve the A value in E according to the value in D1?€ƒ


xlmate

How to find duplicate cells in Column a & retrieve column B
 
Vlookup doesn't look up value to the left of the table.
Assume that you have no header row and data start at that row onward.
Further assume that you place the lookup value in D1 and not C1

Try this non array formula, copy and paste the formula to your target cell
in E1
=INDEX(A1:A10,MATCH(D1,B2:B10,0))

if you want to ignore #N/A when the lookup value does not exist

use this to return a msg - "Non-Exist"

=IF(ISNA(INDEX(A1:A10,MATCH(D1,B1:B10,0))),"Non-Exist",INDEX(A1:A10,MATCH(D1,B1:B10,0)))


--
Hope this is helpful

Appreciate that you provide your feedback by clicking the Yes button below
if this post have helped you.


Thank You

cheers, francis



"ghost" wrote:

How to find duplicate cells in Column a & retrieve column B
A B C D E
1 abc cba =vlookup(c1,a1:a4,1,false) 2
2 cba€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€¦€ ¦€¦€¦

What I want to do is retrieve the A value in E according to the value in D1?€ƒ



All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com