Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Yes or No for adjacent cells

I want cell N8 to display "Yes" if any cell between B8 and M8 have a "Y" in
them. I have tried the array {=IF(B8:M8="Y","Yes","No")} but it only reads
the first cell and disregards any "Y" in any other cell. If the cels have "N"
in them then N8 can remain empty.
Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Yes or No for adjacent cells

Try...
{=IF(Or(B8:M8="Y"),"Yes","No")}
--
JNW


"JKWParrott" wrote:

I want cell N8 to display "Yes" if any cell between B8 and M8 have a "Y" in
them. I have tried the array {=IF(B8:M8="Y","Yes","No")} but it only reads
the first cell and disregards any "Y" in any other cell. If the cels have "N"
in them then N8 can remain empty.
Any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Yes or No for adjacent cells

Thanks, worked like a charm.

"JNW" wrote:

Try...
{=IF(Or(B8:M8="Y"),"Yes","No")}
--
JNW


"JKWParrott" wrote:

I want cell N8 to display "Yes" if any cell between B8 and M8 have a "Y" in
them. I have tried the array {=IF(B8:M8="Y","Yes","No")} but it only reads
the first cell and disregards any "Y" in any other cell. If the cels have "N"
in them then N8 can remain empty.
Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Yes or No for adjacent cells

=if(countif(b8:m8,"y")0,"yes","no")

or if you want the cell to look blank:

=if(countif(b8:m8,"y")0,"yes","")



JKWParrott wrote:

I want cell N8 to display "Yes" if any cell between B8 and M8 have a "Y" in
them. I have tried the array {=IF(B8:M8="Y","Yes","No")} but it only reads
the first cell and disregards any "Y" in any other cell. If the cels have "N"
in them then N8 can remain empty.
Any ideas?


--

Dave Peterson
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
PASTING NON ADJACENT CELLS FarGardener Excel Discussion (Misc queries) 3 November 27th 07 06:31 AM
SUM function won't allow more than 30 non-adjacent cells juanfranela Excel Worksheet Functions 4 April 27th 07 05:12 PM
Graphing non adjacent cells struggling_with_excel Charts and Charting in Excel 1 March 28th 07 02:34 AM
By selecting cells adjacent to cells tally sheet tom Excel Worksheet Functions 2 September 20th 06 07:09 PM
How do I fill (copy) nonadjacent cells to adjacent cells? BuckyGeorge Excel Discussion (Misc queries) 2 December 22nd 05 04:18 AM


All times are GMT +1. The time now is 10:26 AM.

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

About Us

"It's about Microsoft Excel"