Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,069
Default Finding text

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.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Finding text

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")

--
Biff
Microsoft Excel MVP


"JOHN" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 70
Default Finding text

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.)


New Delhi, India


"JOHN" wrote:

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.

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,069
Default Finding text

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.

"DILipandey" wrote:

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.)


New Delhi, India


"JOHN" wrote:

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.

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Finding text

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.

--
Biff
Microsoft Excel MVP


"JOHN" wrote in message
...
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.

"DILipandey" wrote:

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.)


New Delhi, India


"JOHN" wrote:

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.





  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,069
Default Finding text

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.

"T. Valko" wrote:

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.

--
Biff
Microsoft Excel MVP


"JOHN" wrote in message
...
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.

"DILipandey" wrote:

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.)


New Delhi, India


"JOHN" wrote:

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.




  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Finding text

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"JOHN" wrote in message
...
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.

"T. Valko" wrote:

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.

--
Biff
Microsoft Excel MVP


"JOHN" wrote in message
...
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.

"DILipandey" wrote:

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.)


New Delhi, India


"JOHN" wrote:

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.






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
Finding text Naz Excel Worksheet Functions 5 May 27th 08 02:19 PM
Finding a text box [email protected] Excel Worksheet Functions 1 January 23rd 07 04:36 PM
Finding text in a cell and returning a value based on that text [email protected] Excel Discussion (Misc queries) 5 January 10th 07 06:01 PM
Finding a particular text Animesh Excel Discussion (Misc queries) 4 August 18th 05 05:48 PM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 07:21 PM


All times are GMT +1. The time now is 09:37 AM.

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"