Vlookup? and range check

malbarki

New Member
Joined
Sep 18, 2013
Messages
1
Dears I need your help

My data is as follow

NameStatus
Pro1Successful
Pro1Failed
Pro2Failed
Pro2Failed
Pro3Successful
Pro3Successful
Pro4Successful

<tbody>
</tbody>

And what I want is retrieve the names without duplication and this criteria for the status

If I have Successful and Failed return
Failed​
If I have Failed and Failed return
Failed​
If I have Successful and Successful return
Successful​
If there is no duplication return what ever the status is

<tbody>
</tbody>



Expected results

NameStatus
Pro1Failed
Pro2Failed
Pro3Successful
Pro4Successful

<tbody>
</tbody>
 
Last edited:

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
NameStatus
Pro1Successful
Pro1Failed
Pro2Failed
Pro2Failed
Pro3Successful
Pro3SuccessfulCount of StatusStatus
Pro4SuccessfulNameFailedSuccessfulGrand Total
Pro1112
Pro222
Pro3 22
Pro4 11
Grand Total347
failedsuccesfulstatus
Pro111failed
Pro21failed
Pro31successful
Pro41successful
a helper pivot and a helper table, which can be hidden,
do the business…

<colgroup><col><col><col span="3"><col><col span="2"><col><col span="2"></colgroup><tbody>
</tbody>
 
Upvote 0

Book1
ABCDEF
1NameStatusNameStatus
2Pro1SuccessfulPro1Failed
3Pro1FailedPro2Failed
4Pro2FailedPro3Successful
5Pro2FailedPro4Successful
6Pro3Successful
7Pro3Successful
8Pro4Successful
Sheet1


In E2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($A$2:$A$8,SMALL(IF(FREQUENCY(IF($A$2:$A$8<>"",MATCH($A$2:$A$8,$A$2:$A$8,0)),ROW($A$2:$A$8)-ROW($A$2)+1),ROW($A$2:$A$8)-ROW($A$2)+1),ROWS($E$2:E2))),"")

In F2 just enter and copy down:

=IF($E2="","",IF(COUNTIFS($A$2:$A$8,$E2,$B$2:$B$8,"<>"),IF(COUNTIFS($A$2:$A$8,$E2,$B$2:$B$8,"failed"),"Failed","Successful"),"no data"))
 
Upvote 0
If you have Failed and Successful, what is the result? ?
 
Upvote 0

Forum statistics

Threads
1,215,193
Messages
6,123,560
Members
449,108
Latest member
rache47

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