MATCH/INDEX: Confirm a "Specific" Text, if any returns differ mark final return value as "No", if all match mark as "Yes"

Morey

New Member
Joined
Sep 24, 2018
Messages
37
Hello all,

I would like to INDEX/MATCH while confirming a "Specific" text. If any returns differ from "Specific" text, mark final return value as "No". If all match mark as "Yes". Any help or suggestions would be greatly appreciated.


Modifiable Formula:

Code:
=IFERROR(INDEX('Data (O&S+PC&I)'!$AI$2:$AI$5000,MATCH($B$2,'Data (O&S+PC&I)'!$A$2:$A$5000,0))&"", "")

Regards,

Morey
 

Some videos you may like

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

JefferyLi

New Member
Joined
Jul 16, 2019
Messages
9
I dont know what your data is but based on the description you should use a if formula instead of iferror.

if(INDEX('Data (O&S+PC&I)'!$AI$2:$AI$5000,MATCH($B$2,'Data (O&S+PC&I)'!$A$2:$A$5000,0))<>"Specific","No","Yes")
 

Morey

New Member
Joined
Sep 24, 2018
Messages
37
Jeff,

I dont know what your data is but based on the description you should use a if formula instead of iferror.

if(INDEX('Data (O&S+PC&I)'!$AI$2:$AI$5000,MATCH($B$2,'Data (O&S+PC&I)'!$A$2:$A$5000,0))<>"Specific","No","Yes")
This does work. What if two matching values are found but one, does not match "specific" text? In this case, return would be No. How would I modify formula to suit?

Code:
=IF(INDEX('PRPO CLN'!L2:L5000,MATCH(A1,'PRPO CLN'!E2:E5000,0))<>"Fully Released","No","Yes")
Regards,

Morey
 
Last edited:

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,371
Maybe...

=IF(COUNTIFS('PRPO CLN'!$E$2:$E$5000,A1,'PRPO CLN'!L2:L5000,"Fully Released"),"Yes","No")

M.
 

JefferyLi

New Member
Joined
Jul 16, 2019
Messages
9
um.. I dont know if I understand correctly.

try this (if index result is not "something1", or index result is not "Something2", then mark as "NO", rest of them mark as "Yes"

=IF(OR(INDEX('Data (O&S+PC&I)'!$AI$2:$AI$5000,MATCH($B$2,'Data (O&S+PC&I)'!$A$2:$A$5000,0))<>"Specific",INDEX('Data (O&S+PC&I)'!$AI$2:$AI$5000,MATCH($B$2,'Data (O&S+PC&I)'!$A$2:$A$5000,0))<>"Specific"),"No","Yes")
 

Watch MrExcel Video

Forum statistics

Threads
1,101,770
Messages
5,482,814
Members
407,364
Latest member
oz67

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