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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,214,648
Messages
6,120,726
Members
448,987
Latest member
marion_davis

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