countif? or ifthen?

rawdata89

New Member
Joined
Apr 26, 2022
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
  3. Mobile
  4. Web
Hello,

I want to insert "yes'/"no" in columns I & J below based on if each row has 3 No's or 3 Yes's but the cells are non sequential, how would I write this? using a countif or an ifthen?

Required skills Met YesRequired skills Met NoTotal hours CountTotal hours Met YesTotal hours Met No# of hours - Have Less than 15Required hourss Count YesRequired hourss Count NoFLAG YFLAG N
YES
0​
YES
0​
YESYES
No
0​
No
0​
NoNO
YES
0​
YES
0​
YESYES
No
0​
No
0​
NoNO
No
0​
No
0​
NoNO
 

Attachments

  • yes no.PNG
    yes no.PNG
    43.6 KB · Views: 3

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Welcome to the MrExcel forum. Please accept my warmest greetings and sincere hope that all is well.

How about:
Dante Amor
ABCDEFGHIJ
1Required skills Met YesRequired skills Met NoTotal hours CountTotal hours Met YesTotal hours Met No# of hours - Have Less than 15Required hourss Count YesRequired hourss Count NoFLAG YFLAG N
2YES0YES0YESYES 
3No0No0No NO
4YES0YES0YESYES 
5No0No0No NO
6No0No0No NO
Sh1
Cell Formulas
RangeFormula
I2:I6I2=IF(COUNTIF(A2:H2,"YES")=3,"YES","")
J2:J6J2=IF(COUNTIF(A2:H2,"NO")=3,"NO","")



--------------
I hope to hear from you soon.
Respectfully
Dante Amor
--------------
 
Upvote 1
will the columns that you dont want to include have a YES or NO
if not then just use the full range

=countif(range , "YES")=3
with an IF

=IF(countif(range , "YES")=3, "YES","")

BUT what happens if you have more than 3 YES , is that possible
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,327
Members
449,155
Latest member
ravioli44

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