Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gwbeck
 
Posts: n/a
Default how do I =if(any one of 20 specified cell=1," ",1)

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default how do I =if(any one of 20 specified cell=1," ",1)

Try this:

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

Is that what you're looking for?

***********
Regards,
Ron


"gwbeck" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default how do I =if(any one of 20 specified cell=1," ",1)

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
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"gwbeck" wrote in message
...
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"