Require formula to get status based on count and char

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Team,

I am looking for some formula to get the require project status "Yes" or "No". Here I have sample data. If you look at project name is repeating and project type have both onshore and offshore. I would need to get status "Yes" if any project worked on both project types. If in case project worked on only one project then I should get "No".

Project NameProject TypeAmountAnwser Should be
P1Onshore 4,569No
P2Offshore 4,983Yes
P1Onshore 2,829No
P2Onshore 4,712Yes
P3Onshore 4,920Yes
P3Offshore 1,458Yes
P3Onshore 1,679Yes
P4Offshore 4,322No
P5Offshore 4,920No
P5Offshore 1,458No

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

Can anyone please help on this.

Thank you
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Let's say that your data table is in the range A1:C11 (where row 1 is your title row).
Then enter this formula in cell D2 and copy down to D11:
Code:
=IF(AND(COUNTIFS($A$2:$A$11,A2,$B$2:$B$11,"Onshore")>0,COUNTIFS($A$2:$A$11,A2,$B$2:$B$11,"Offshore")>0),"Yes","No")
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,618
Members
449,238
Latest member
wcbyers

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