Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Simple to those in the know

From an amateur Excel user to all you pros - I am trying
to get a formula to acknowledge that if any entry within a
range of cells reads "ERROR" that it tells me. Trouble
is, the formula as I have it at the moment won't recognise
a range of cells. Can anyone tell me what is wrong with
the following:

=IF(Y5:Y676<"OKAY","PROBLEM", "FINE")

Where the range will contain one of two values: OKAY or
ERROR.

Hope someone can help - I'm sure there's a simple solution!

Thanks All.

TC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Simple to those in the know

=IF(COUNTIF(Y5:Y676,"ERROR")=0,"FINE","PROBLEM")

--
Olly


"TC" wrote in message
...
From an amateur Excel user to all you pros - I am trying
to get a formula to acknowledge that if any entry within a
range of cells reads "ERROR" that it tells me. Trouble
is, the formula as I have it at the moment won't recognise
a range of cells. Can anyone tell me what is wrong with
the following:

=IF(Y5:Y676<"OKAY","PROBLEM", "FINE")

Where the range will contain one of two values: OKAY or
ERROR.

Hope someone can help - I'm sure there's a simple solution!

Thanks All.

TC



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Simple to those in the know

"TC" skrev i melding
...
From an amateur Excel user to all you pros - I am trying
to get a formula to acknowledge that if any entry within a
range of cells reads "ERROR" that it tells me.
=IF(Y5:Y676<"OKAY","PROBLEM", "FINE")

Where the range will contain one of two values: OKAY or
ERROR.


You shouldn't bet on that, users can create the most surprising entries.
Let's just spot one or more ERROR in the content as indicially stated, and
ignore blanks or misspellings:

=IF(COUNTIF(Y5:Y626,"*ERROR*")0,"Problem","Fine")

--
HTH. Best wishes Harald
Followup to newsgroup only please


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
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple problem, simple formula, no FUNCTION ! Ron@Buy Excel Worksheet Functions 6 September 28th 07 04:51 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
Make it more simple or intuitive to do simple things Vernie Charts and Charting in Excel 1 March 16th 05 04:01 AM
simple question, hopefully a simple answer! Matt B Excel Programming 5 January 13th 04 08:43 PM


All times are GMT +1. The time now is 11:36 PM.

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"