#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formula Help

I have a number of rows where the cell entries can be wither y, n or #N/A.

I want to create a final cell which looks at the data in the row. If there
is a Y in any of the cells, the final cell needs to be a "y". If there is not
a "y" in any of the cells, the final cell needs to be "n"

I've tried using an "if" formula. THis works against a single cell but can't
get it to work using a range of cells.

=if(a1:e1)="y", "y", "n"

Help appreciated.

Rob
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Formula Help

Try this:

=IF(COUNTIF(A1:E1,"y")0,"y","n")

HTH,
Elkar


"reesrob" wrote:

I have a number of rows where the cell entries can be wither y, n or #N/A.

I want to create a final cell which looks at the data in the row. If there
is a Y in any of the cells, the final cell needs to be a "y". If there is not
a "y" in any of the cells, the final cell needs to be "n"

I've tried using an "if" formula. THis works against a single cell but can't
get it to work using a range of cells.

=if(a1:e1)="y", "y", "n"

Help appreciated.

Rob

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 02:46 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"