formula to return status of a PO w/ multiple rows and multiple status

rando123

New Member
Joined
Feb 9, 2016
Messages
9
Hello

I need assistance with coming up with a formula for spreadsheet 2 column 2.
I have a list of all PO in spreadsheet 1 and need to Pass or Fail based on the status from spreadsheet 1. If it contains a no or maybe then fail. this is a s implied version.



Spreadsheet 1

<tbody>
</tbody>
POStatus
1234Yes
1234Yes
123290No
9889Maybe
9889Yes
9889Yes
0984035Yes
0984035No
0984035No
0984035Maybe

<tbody>
</tbody>

Spreadsheet 2 (separate sheet): Results in Column 2 is what I NEED but can't figure out
POLook Up to Spreadsheet 1 and Return a Fail if contains No OR Maybe, otherwise Pass
1234Pass
123290Fail
9889Fail
0984035Fail

<tbody>
</tbody>
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Maybe...

Sheet2 B2 copied down
=IF(COUNTIF(Sheet1!A:A,A2),IF(SUM(COUNTIFS(Sheet1!A:A,A2,Sheet1!B:B,{"No";"Maybe"})),"Fail","Pass"),"Not Found")

Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,012
Members
449,204
Latest member
tungnmqn90

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