Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default 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.


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default 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.


.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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.




  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default 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.






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
Excel Data Validation/Lookup function does function correcty Kirkey Excel Worksheet Functions 2 May 25th 09 09:22 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


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