Vlookup and multiple ifs with text values

concretejungle16

New Member
Joined
Jan 25, 2018
Messages
2
All,

I have 2 tabs.

Tab 1 contains a column where I want the returned results to display, titled "Statuses."

Tab 2 contains a column that could have just one of a numeric value (one number 5), or multiple (three number 8s).

I want to lookup all instances of a number and associated TEXT values in the same row. Those three number 8s could have Untested, Currently Testing, Passed, or Failed listed.

Finally, I want to return the result:
- If any say Failed, returned result in Tab 1 is Failed
- If any say Untested, returned result in Tab 1 is Untested
- If all say Passed, returned result in Tab 1 is Passed
- If not all say Passed but none say Failed, returned result in Tab 1 is Currently Testing


I'm absolutely stumped on what this formula should look like. Help :(
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Try this. Your value to test in A1. You columns of values in Sheet2!A:B.

=IF(COUNTIFS(Sheet2!A:A,A1,Sheet2!B:B,"Failed"),"Failed",IF(COUNTIFS(Sheet2!A:A,A1,Sheet2!B:B,"Untested"),"Untested",IF(COUNTIFS(Sheet2!A:A,A1,Sheet2!B:B,"Passed")/COUNTIFS(Sheet2!A:A,A1)=1,"Passed","Currently Testing")))
 
Upvote 0

Forum statistics

Threads
1,216,031
Messages
6,128,422
Members
449,450
Latest member
gunars

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