Need help obtaining a formula

mrafiq44

New Member
Joined
Oct 14, 2015
Messages
33
So on the row i have different people such as Person A, Person B, Person C, etc.
And on the columns i have their duties such as - Cleaning, Drying, Building, Examining
So an example would be person A - Cleaning (Yes), Drying (No), Building (Yes), Examining (No)
Some of these duties are high level such as Cleaning and Drying - so i want to create a formula that a column in the end that would be Column 5 shows Yes because person A does perform a high level task.
Can someone please help me with this formula?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Something like this?
Book2
ABCDEF
1CleaningDryingBuildingExmainingHigh Level Task?
2Person AYesNoYesNoYES
3Person BNoNoYesYesNO
4Person CYesYesYesNoYES
Sheet9
Cell Formulas
RangeFormula
F2:F4F2=IF(COUNTIFS(B2:C2,"Yes"),"YES","NO")
 
Upvote 0
Something like this?
Book2
ABCDEF
1CleaningDryingBuildingExmainingHigh Level Task?
2Person AYesNoYesNoYES
3Person BNoNoYesYesNO
4Person CYesYesYesNoYES
Sheet9
Cell Formulas
RangeFormula
F2:F4F2=IF(COUNTIFS(B2:C2,"Yes"),"YES","NO")
[/
Something like this?
Book2
ABCDEF
1CleaningDryingBuildingExmainingHigh Level Task?
2Person AYesNoYesNoYES
3Person BNoNoYesYesNO
4Person CYesYesYesNoYES
Sheet9
Cell Formulas
RangeFormula
F2:F4F2=IF(COUNTIFS(B2:C2,"Yes"),"YES","NO")
what if its different columns that are not together?
Cell Formulas
RangeFormula
 
Upvote 0
What is the columns are A and D?
If you have only 2 targeted columns, then you can try the below. If there are a lot more then there might be a more concise syntax depending on your version of XL.
Book2
ABCDEF
1CleaningBuildingDryingExamainingHigh Level Task?
2Person AYesYesNoNoYes
3Person BNoYesNoYesNo
4Person CYesYesYesNoYes
Sheet9
Cell Formulas
RangeFormula
F2:F4F2=IF((B2="Yes")+(D2="Yes"),"Yes","No")
 
Upvote 0
If you have only 2 targeted columns, then you can try the below. If there are a lot more then there might be a more concise syntax depending on your version of XL.
Book2
ABCDEF
1CleaningBuildingDryingExamainingHigh Level Task?
2Person AYesYesNoNoYes
3Person BNoYesNoYesNo
4Person CYesYesYesNoYes
Sheet9
Cell Formulas
RangeFormula
F2:F4F2=IF((B2="Yes")+(D2="Yes"),"Yes","No")
Thank you so much!!! Saved me a ton of time.
 
Upvote 0
Thank you so much!!! Saved me a ton of time. Another question - what is there is other condition in a column where is the person is a Carpenter i.e. job position he should not be a part of this formula and the answer should be a no even if the formula gives a yes
 
Upvote 0
If you end up having more, you could insert a row at the top, and above each column that is a HIGH level job, put the word HIGH, and then you could do this:

=IF(COUNTIFS(B3:E3,"Yes",$B$1:$E$1,"HIGH"),"YES","NO")


HIGHHIGH
CleaningDryingBuildingExmainingHigh Level Task?
Person AYesNoYesNoYES
Person BNoNoNoYesNO
Person CYesYesYesNoYES
 
Upvote 0
Thank you so much!!! Saved me a ton of time. Another question - what is there is other condition in a column where is the person is a Carpenter i.e. job position he should not be a part of this formula and the answer should be a no even if the formula gives a yes
Book2
ABCDEFG
1PersonPositionCleaningBuildingDryingExamainingHigh Level Task?
2Person ACarpenterYesYesNoNoNo
3Person BJanitorNoYesNoYesNo
4Person CManagerYesYesYesNoYes
Sheet9
Cell Formulas
RangeFormula
G2:G4G2=IF((B2<>"Carpenter")*((C2="Yes")+(E2="Yes")),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,225,767
Messages
6,186,916
Members
453,386
Latest member
testmaster

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