Finding text

J

JOHN

I am using Excel 2007, I have a column containing formulas that would return
a name if true and a zero if false. I want to search the column for the text
entry and return that text as the answer. Can I do this or should the column
formulas be changed to something else? The "T" formula seems to work only
for one cell not the whole column.
 
T

T. Valko

It's not real clear what you want to do. Here's my best guess...

Assume you want to know if John is in the range.

=IF(COUNTIF(A1:A100,"John"),"John","not found")

Better to use a cell to hold the criteria:

C1 = John

=IF(COUNTIF(A1:A100,C1),C1,"not found")
 
D

DILipandey

Hi John,

Assuming the text you want to search is there in Cell C1, and the data in
which search is to be conducted is there in Column A, Now use the following
formula:-

=IF(ISNUMBER(MATCH("*"&TEXT(C1,"@")&"*",$A:$A,0)),"Name Is There","Name Is
Not There")

Let me know if it works.. Thanks.
--
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
(e-mail address removed)
(e-mail address removed)
New Delhi, India
 
J

JOHN

Let me try to make it clearer. column A contains names, column B contains
sales totals, below in column B is a MIN formula, if the sales total equals
the MIN, the formula in column C returns the name, if not a zero. I want the
formula to search column C to find the text entry (name) and return that name
as the result. In Column C there will be only one text entry and the rest
numerical. The text could be in any cell in column C.
 
T

T. Valko

the formula in column C returns the name, if not a zero
there will be only one text entry and the rest numerical.

Ok, that clears it up nicely!

Try this:

=INDEX(C2:C20,MATCH("*",C2:C20,0))

Adjust the range to suit.
 
J

JOHN

Thank you Biff,
That works perfectly, just what I was looking for. That you all for your
input, the success of my worksheet is the direct result of the people here
taking the time to help others. Thank you all again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top