Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |