ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Matching cells (https://www.excelbanter.com/excel-discussion-misc-queries/196494-matching-cells.html)

GARY

Matching cells
 
How do I match a cell in COL A with a cell anywhere in COL B? (For
the matches, I need the contents in COL C).

COL A COL B COL C

009000001-4 009000001-4 Y
009000005-8 009000002-5 Y
009000007-0 009000003-6 Y
009000008-1 009000004-7 Y
009000014-6 009000005-8 R
009000018-0 009000006-9 Y
009000019-1 009000007-0 Y
009000020-1 009000008-1 Y
009000021-2 009000009-2 Y
009000025-6 009000011-3 Y
009000027-8 009000012-4 Y
009000028-9 009000013-5 Y
009000031-1 009000014-6 R
009000032-2 009000017-9 Y
009000033-3 009000018-0 R
009000038-8 009000019-1 Y
009000042-1 009000020-1 Y
009000045-4 009000021-2 Y
009000023-4 Y
009000024-5 Y
009000025-6 R
009000026-7 Y
009000027-8 Y
009000028-9 Y
009000029-0 Y
009000030-0 Y
009000031-1 R
009000032-2 R
009000033-3 R
009000034-4 Y
009000035-5 Y
009000038-8 Y
009000039-9 Y
009000040-9 Y
009000041-0 Y
009000042-1 Y
009000043-2 Y
009000044-3 Y
009000045-4 R
009000046-5 Y
009000047-6 Y
009000048-7 Y
009000050-8 Y




















































































excelent

Matching cells
 
try
=INDEX($C$2:$C$100,MATCH(A2,$B$2:$B$100,0))



"GARY" skrev:

How do I match a cell in COL A with a cell anywhere in COL B? (For
the matches, I need the contents in COL C).

COL A COL B COL C

009000001-4 009000001-4 Y
009000005-8 009000002-5 Y
009000007-0 009000003-6 Y
009000008-1 009000004-7 Y
009000014-6 009000005-8 R
009000018-0 009000006-9 Y
009000019-1 009000007-0 Y
009000020-1 009000008-1 Y
009000021-2 009000009-2 Y
009000025-6 009000011-3 Y
009000027-8 009000012-4 Y
009000028-9 009000013-5 Y
009000031-1 009000014-6 R
009000032-2 009000017-9 Y
009000033-3 009000018-0 R
009000038-8 009000019-1 Y
009000042-1 009000020-1 Y
009000045-4 009000021-2 Y
009000023-4 Y
009000024-5 Y
009000025-6 R
009000026-7 Y
009000027-8 Y
009000028-9 Y
009000029-0 Y
009000030-0 Y
009000031-1 R
009000032-2 R
009000033-3 R
009000034-4 Y
009000035-5 Y
009000038-8 Y
009000039-9 Y
009000040-9 Y
009000041-0 Y
009000042-1 Y
009000043-2 Y
009000044-3 Y
009000045-4 R
009000046-5 Y
009000047-6 Y
009000048-7 Y
009000050-8 Y






















































































All times are GMT +1. The time now is 09:52 PM.

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