LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve Jackson
 
Posts: n/a
Default Unable to search for a text value with IF

Hi,

I am trying to run an IF statement but not sure if it is appropriate because
it is involves text. What I have so far is along the lines of
=IF(A1:A10=Sheet2!B2,Run Numeric Statement,0).

What I am trying through the function to achieve is this:
1. Look in a column for the existance of a word. The Word is referenced to a
cell in another worksheet, so only cells are used in the function, which is
where the whole A1:A10=Sheet2!B2 test comes in.
2. If that word appears in the column then run a truth statement (All
numeric)
3. If that word doesn't appear then the value is 0

The problem I am getting with the IF function is that Excel responds with a
#Value error. Can the logical test in the IF statement search through a
block of text for the existance of another cell, even if that cell contains
text? Is there a more suitable function in Excel for searching for text?

Steve



 
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
How change dimensions of data label text box in pie chart? Gouden Willem Charts and Charting in Excel 3 March 7th 06 12:11 PM
Search for Text in Excel Duncan, UK Excel Discussion (Misc queries) 6 January 11th 06 07:13 PM
How do I search for specific text and sum the cell to the right? PacRat2001 Excel Worksheet Functions 3 October 12th 05 04:21 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
How do I use VLOOKUP to search for text? Gman Excel Worksheet Functions 1 April 18th 05 12:11 AM


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