how do I =if(any one of 20 specified cell=1," ",1)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Excel formula help please. I want to check 20 cells within a spreadsheet for
a specific value. If at least one of the cells is equal to the specified
value return blank if none of the cells is equal to the specified value
return the specified value.
 
Try this:

=IF(COUNTIF(A1:A20,1),"",0)

Is that what you're looking for?

***********
Regards,
Ron
 
Can I expand on Ron's answer?
If your data is in A1:A20 and B1 contains the "specified value" then
=IF(COUNTIF(A1:A20,B2),"",B2)
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top