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
 

Some videos you may like

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

oldbrewer

Board Regular
Joined
Apr 11, 2010
Messages
10,997
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>
 

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,117
Office Version
2007
Platform
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:

Watch MrExcel Video

Forum statistics

Threads
1,102,050
Messages
5,484,417
Members
407,438
Latest member
DKrakken

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top