Using IF Statement to return three possible solutions

maddogg126

New Member
Joined
Sep 12, 2024
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I am trying to use if statement to return three possible returns. I am using =IF(CountIf(S6:S25,"No")>0, "No", "Yes") to return the value as Yes if all the lookups have Yes or No if there is both Yes and No. However, if there is nothing I would like it to return a blank cell. The formula works so far, but I am struggling with the blank return.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
=IF(COUNTA(S6:S25),IF(COUNTIF(S6:S25,"No"),"No","Yes"),"")

Thank you Scott! I forgot to mention that the range of cells that are being used are being pulled from another sheet so there is a formula in the cell ('2416'!$F$17). The formula provided returns 'Yes' when there is no Yes or No indicated.
 
Upvote 0
=IF(SUM(LEN(S6:S25)),IF(COUNTIF(S6:S25,"No"),"No","Yes"),"")

I am still getting the same results - below are some screen shots - again thank you for your help.

1726155874862.png


1726155899619.png


1726155923842.png
 
Upvote 0
If I delete the cell referencing another sheet cell, it returns a blank. But when the reference cell is in there, it gives Yes.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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