Issue with MATCH

shakeregg

New Member
Joined
Sep 2, 2018
Messages
39
Hey all,

FormR kindly helped with combining two formulas together:

=IF(AND(INDEX(T:T,MATCH(E5,AF:$AF,0))=G5,INDEX(BJ:BJ,MATCH(E5,AF:$AF,0))=H5),"Yes","No")

This formula is replicated in Rows until 1500 i.e.

=IF(AND(INDEX(T:T,MATCH(E6,AF:$AF,0))=G6,INDEX(BJ:BJ,MATCH(E6,AF:$AF,0))=H6),"Yes","No")

etc etc

The issue that I'm now facing is that on occasions the data inputted in Column E and AF may be the same in multiple cells i.e. Smith, John. As a result it's often incorrectly returning a 'No' as it's picking up the first Smith, John in AF. What I want it do if possible is to continue searching for the exact match (T:T & G5, BJ:BJ & H5 etc) and return a 'No' then if it's not found.

Hopefully that makes sense

Can provide more info if needed.

Cheers for any help people can provide!

Matt
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

oldbrewer

Well-known Member
Joined
Apr 11, 2010
Messages
11,005
row 4
bob smith9bob jones14row 5
tom jones7
b jones5
rob jones12
bob jones1414 obtained by
bill green16
=OFFSET($A$4,MATCH(E5,$A$5:$A$100,0),1)

<colgroup><col width="64" span="11" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
16,543
Office Version
  1. 2013
Platform
  1. Windows
Use this:

Excel Workbook
AEFGHTAFBJ
1
4NameFormulaData1Data2First searchNamesSecond Search
5John SmithYesnewoldwithoutJohn Smithnew
6CarolNoSwitchwhitewithoutJohn Smithnew
7SueYesislabonitanewJohn Smithold
8SwitchCarolYellow
9SwitchCarolPink
10SwitchCarolblue
11islaSuecan
12islaSuebonita
13islaSuedessert
sheet1
 
Last edited:
Upvote 0

Forum statistics

Threads
1,195,591
Messages
6,010,614
Members
441,558
Latest member
lambierules

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
Top