Return Cell Address After Match

ed9213

New Member
Joined
Apr 27, 2014
Messages
13
This doesn't appear to be a new subject, but the solutions I've found don't seem to work for me.

I have a range of approximately 200 unique alphanumeric entries in column A.

I have new entries in column B and want to verify if there are any matching entries in column A.

The formula isn't a simple match; I want the result to point to the cell that has the match. So, near the entry in column B that is the specified item, if there is a match I would like to see the cell location in column A that holds it.

There must be a way to do this, but I can't seem to get this resolved by myself.

Thanks.

ed9213
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
How about
=ADDRESS(MATCH(B2,A:A,0),1,4)
 
Upvote 0
You mean something like this


Book1
ABC
1Abc123abd347$A$4
2def345cde123$A$7
3erf124
4abd347
5efr554
6red2344
7cde123
Sheet2
Cell Formulas
RangeFormula
C1=ADDRESS(MATCH(B1,$A$1:$A$7,0),1)
 
Upvote 0
[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#5B9BD5]Column A[/td][td=bgcolor:#5B9BD5]Column B[/td][td][/td][td=bgcolor:#70AD47]Column A[/td][td=bgcolor:#70AD47]Row[/td][td=bgcolor:#70AD47]Column B[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]abc[/td][td=bgcolor:#DDEBF7]555g[/td][td][/td][td=bgcolor:#E2EFDA]abc[/td][td=bgcolor:#E2EFDA]
1​
[/td][td=bgcolor:#E2EFDA]abc[/td][/tr]

[tr=bgcolor:#FFFFFF][td]ww1[/td][td]tgtg[/td][td][/td][td]555g[/td][td]
4​
[/td][td]555g[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]123x[/td][td=bgcolor:#DDEBF7]abc[/td][td][/td][td=bgcolor:#E2EFDA]ww1[/td][td=bgcolor:#E2EFDA]
2​
[/td][td=bgcolor:#E2EFDA][/td][/tr]

[tr=bgcolor:#FFFFFF][td]555g[/td][td]xxxx[/td][td][/td][td]123x[/td][td]
3​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]zxzxzx[/td][td][/td][td][/td][td=bgcolor:#E2EFDA]zxzxzx[/td][td=bgcolor:#E2EFDA]
5​
[/td][td=bgcolor:#E2EFDA][/td][/tr]

[tr=bgcolor:#FFFFFF][td]dddd[/td][td][/td][td][/td][td]dddd[/td][td]
6​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]tgtg[/td][td][/td][td][/td][td=bgcolor:#E2EFDA]tgtg[/td][td=bgcolor:#E2EFDA]
7​
[/td][td=bgcolor:#E2EFDA]tgtg[/td][/tr]

[tr=bgcolor:#FFFFFF][td]qqqq[/td][td][/td][td][/td][td]qqqq[/td][td]
8​
[/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]xxxx[/td][td][/td][td][/td][td=bgcolor:#E2EFDA]xxxx[/td][td=bgcolor:#E2EFDA]
9​
[/td][td=bgcolor:#E2EFDA]xxxx[/td][/tr]

[tr=bgcolor:#FFFFFF][td]vvvv[/td][td][/td][td][/td][td]vvvv[/td][td]
10​
[/td][td][/td][/tr]
[/table]


PowerQuery:

M-code
Code:
[SIZE=1]let
    Source = Table.NestedJoin(Table1,{"Column A"},Table2,{"Column B"},"Table2",JoinKind.LeftOuter),
    #"Expanded Table2" = Table.ExpandTableColumn(Source, "Table2", {"Column B"}, {"Column B"})
in
    #"Expanded Table2"[/SIZE]
 
Upvote 0
You mean something like this

ABC
Abc123abd347$A$4
def345cde123$A$7
erf124
abd347
efr554
red2344
cde123

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: center"]2[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet2

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C1[/TH]
[TD="align: left"]=ADDRESS(MATCH(B1,$A$1:$A$7,0),1)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

Momentman,

Your formula is the closest to what I need. Is it possible to make it case-sensitive?

Thanks.
ed9213
 
Upvote 0
How about


Excel 2013/2016
ABC
2AL1 5EGAL2 1UXA3
3AL10 9WXAL3 6ADA7
4AL2 1UXAL4 0xxNo Match
5AL2 2EJAL5 5FGA15
6AL2 3XZAL5 5UNNo Match
7AL2 3YT
8AL3 6AD
9AL3 6NZ
10AL4 0AA
11AL4 0BW
12AL4 0XX
13AL4 9XZ
14AL4 9YL
15AL5 2PR
16AL5 5FG
17AL5 5UG
18al5 5un
19AL6 0PB
20AL6 0PE
21AL6 9TU
Master
Cell Formulas
RangeFormula
C2{=IFERROR(ADDRESS(MATCH(1,--EXACT(A$2:A$21,B2),0),1,4),"No Match")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
How about

Excel 2013/2016
ABC
AL1 5EGAL2 1UXA3
AL10 9WXAL3 6ADA7
AL2 1UXAL4 0xxNo Match
AL2 2EJAL5 5FG
A15
AL2 3XZAL5 5UNNo Match
AL2 3YT
AL3 6AD
AL3 6NZ
AL4 0AA
AL4 0BW
AL4 0XX
AL4 9XZ
AL4 9YL
AL5 2PR
AL5 5FG
AL5 5UG
al5 5un
AL6 0PB
AL6 0PE
AL6 9TU

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]2[/TD]

[TD="align: center"]3[/TD]

[TD="align: center"]4[/TD]

[TD="align: center"]5[/TD]

[TD="align: center"]6[/TD]

[TD="align: center"]7[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]12[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]13[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]14[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]15[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]16[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]17[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]18[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]19[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]20[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]21[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Master

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C2[/TH]
[TD="align: left"]{=IFERROR(ADDRESS(MATCH(1,--EXACT(A$2:A$21,B2),0),1,4),"No Match")}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]

Hi Fluff,

That works great. Thanks.

One question, though. The result is always one row off.

In C2 of your example, A7 is really A8. C5's result (A15) is really A16.

Is this an Excel quirk or is something in the formula?

Thanks, again.
ed9213
 
Upvote 0
Is this an Excel quirk or is something in the formula?
It's me not checking the results properly. :(
It should be
=IFERROR(ADDRESS(MATCH(1,--EXACT(A$2:A$21,B2),0)+1,1,4),"No Match")

Also please do not quote whole posts as it clutters up the thread.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top