ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   function Help (https://www.excelbanter.com/excel-programming/309492-function-help.html)

Anthony B[_2_]

function Help
 
Hi,
I am tryign to write a function that will enable someone to look in a range,
and see if any of the cells in that range contain a certain value, and if so
return true.
For example in column a i have

a,b,c in A1
d,e,f in A2
g,h,i in A3

In cell B1 i have the letter e

I have to be able to have a function in C1, that looks at B1, searches
A1,A2,A3 for the result finds it in A2 and returns true as the value. It is
possible that e exists in more than one cell

Can anyone help, this seems simple but is driving me nuts, i dont want to do
it using a macro.



gmet

function Help
 
Why not highlight it in a color using Conditional
Formatting?

GMet
-----Original Message-----
Hi,
I am tryign to write a function that will enable someone

to look in a range,
and see if any of the cells in that range contain a

certain value, and if so
return true.
For example in column a i have

a,b,c in A1
d,e,f in A2
g,h,i in A3

In cell B1 i have the letter e

I have to be able to have a function in C1, that looks

at B1, searches
A1,A2,A3 for the result finds it in A2 and returns true

as the value. It is
possible that e exists in more than one cell

Can anyone help, this seems simple but is driving me

nuts, i dont want to do
it using a macro.


.


No Name

function Help
 
i need to be able to test the result, against a random set of data
"GMet" wrote in message
...
Why not highlight it in a color using Conditional
Formatting?

GMet
-----Original Message-----
Hi,
I am tryign to write a function that will enable someone

to look in a range,
and see if any of the cells in that range contain a

certain value, and if so
return true.
For example in column a i have

a,b,c in A1
d,e,f in A2
g,h,i in A3

In cell B1 i have the letter e

I have to be able to have a function in C1, that looks

at B1, searches
A1,A2,A3 for the result finds it in A2 and returns true

as the value. It is
possible that e exists in more than one cell

Can anyone help, this seems simple but is driving me

nuts, i dont want to do
it using a macro.


.




Tom Ogilvy

function Help
 
=if(countif(A1:A3,"*"&B1&"*")0,True,False)

or just

=countif(A1:A3,"*"&B1&"*")0


--
Regards,
Tom Ogilvy

"Anthony B" wrote in message
...
Hi,
I am tryign to write a function that will enable someone to look in a

range,
and see if any of the cells in that range contain a certain value, and if

so
return true.
For example in column a i have

a,b,c in A1
d,e,f in A2
g,h,i in A3

In cell B1 i have the letter e

I have to be able to have a function in C1, that looks at B1, searches
A1,A2,A3 for the result finds it in A2 and returns true as the value. It

is
possible that e exists in more than one cell

Can anyone help, this seems simple but is driving me nuts, i dont want to

do
it using a macro.





No Name

function Help
 
thanks tom
"Tom Ogilvy" wrote in message
...
=if(countif(A1:A3,"*"&B1&"*")0,True,False)

or just

=countif(A1:A3,"*"&B1&"*")0


--
Regards,
Tom Ogilvy

"Anthony B" wrote in message
...
Hi,
I am tryign to write a function that will enable someone to look in a

range,
and see if any of the cells in that range contain a certain value, and if

so
return true.
For example in column a i have

a,b,c in A1
d,e,f in A2
g,h,i in A3

In cell B1 i have the letter e

I have to be able to have a function in C1, that looks at B1, searches
A1,A2,A3 for the result finds it in A2 and returns true as the value. It

is
possible that e exists in more than one cell

Can anyone help, this seems simple but is driving me nuts, i dont want to

do
it using a macro.








All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com