Desperately need help with a countif formula/ cells staying blank

Jason M

New Member
Joined
Mar 2, 2018
Messages
2
Greetings form a newbie

Need help with this in Excel 2010 (please, please, please)

=IF(COUNTIF(C6:C8,"N"),"N","Y")

Cell C9 will return a N value if N is selected anywhere between C6 and C8.

The problem is C9 returns a Y value if C6 to C8 are all blank.

Ideally I want C9 to remain blank if there has been no input

Might be simple but I've been racking my brain for a few days over it :eeek::eeek::eeek:

Cheers

Jason
 

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.
Hi Jason,

Welcome to MrExcel!!

This formula should do the trick (there's other ways of doing it as well I'm sure):

=IF(COUNTIF($C$6:$C$8,"")=3,"",IF(COUNTIF($C$6:$C$8,"N")>=1,"N","Y"))

Regards,

Robert
 
Upvote 0
Welcome to MrExcel!

For one of those variations suggested by Robert ..
=IF(COUNTIF($C$6:$C$8,"N"),"N",IF(COUNTA($C$6:$C$8),"Y",""))
 
Upvote 0
Gentlemen,

I thank you both so very much, both solutions worked.

Now I've got the learning of working out the moving bits and pieces of the formula for "next time" :laugh:

Cheers,

Jason
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
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