Combined COUNTIF and an IF statement

mcsmith1974

New Member
Joined
Mar 27, 2023
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
Hi,
I am a beginner Excel user and I have been researching a problem. I cannot figure it out so I thought I would ask this forum.
I am looking to combine a COUNTIF and an IF statement into one formula to arrive at my answer (Yes or No) for a survey type of project.
Basically, I want to count the number of cells with a "Yes" and if the count of the "Yes"value within those cells is >1, then I want to populate a separate field with a "Yes"; if not, then "No".

If you have any guidance on this it would be highly appreciated; although I might kick myself in the rear end for researching it for ~6 hours.

I installed the Add-in so I am hoping you can see the challenge I'm articulating.
Upload Image
Thanks.
Mike

ExcelQuestion_03_2023.xlsx
A
1
Sheet1
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi & welcome to MrExcel.
When using the mini-sheet you need to select a range of cells, not just one.

How about
Excel Formula:
=IF(COUNTIFS(A:A,"Yes")>1,"Yes","No")
 
Upvote 1
Solution
Hi & welcome to MrExcel.
When using the mini-sheet you need to select a range of cells, not just one.

How about
Excel Formula:
=IF(COUNTIFS(A:A,"Yes")>1,"Yes","No")
Thanks a ton! Yes, I realized that I made an error in posting just 1 of the cells. Next time I'll know. Thanks again. I couldn't find this formula anywhere so I guess I am not to ashamed.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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