Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default referencing text in an IF statement

I am trying to use an IF statement to look for text in range of cells but
cannot get it to return the value I want I think because I'm searching for
text not a value. If any cell in a column contains the text "Error" I want
the cell I'm in to also read "Error". Here's the formula I have but it won't
work: =IF(OR(A122:A457="Error"),"Error",""). Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default referencing text in an IF statement

Hi,
try

=if(COUNTIF(a122:a457,"Error")0,"Error","")

"Michelle Thompson" wrote:

I am trying to use an IF statement to look for text in range of cells but
cannot get it to return the value I want I think because I'm searching for
text not a value. If any cell in a column contains the text "Error" I want
the cell I'm in to also read "Error". Here's the formula I have but it won't
work: =IF(OR(A122:A457="Error"),"Error",""). Any suggestions?

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 Statement: cell referencing Mike Excel Worksheet Functions 5 November 5th 07 02:24 PM
referencing cells including an IF statement??? Helpme Excel Worksheet Functions 0 December 28th 06 09:57 PM
Using vlookup when referencing text pblenis Excel Discussion (Misc queries) 3 June 26th 06 10:12 PM
PageArea referencing a text value fontsie Excel Worksheet Functions 0 May 9th 06 09:37 PM
How to get the text format when referencing Vamshee Excel Discussion (Misc queries) 3 June 1st 05 04:05 PM


All times are GMT +1. The time now is 06:46 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"