Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Remote Desktop Connection hotkey
 
Posts: n/a
Default Search column for value and return TRUE or FALSE

Hi!

I function that would search through column of text values (range with 1
column) and return TRUE if column contains value given as criteria or FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether this range
contains value x or - x
  #2   Report Post  
Bob Umlas
 
Posts: n/a
Default

=NOT(ISNA(MATCH("x",A1:A10,0)))
or
=NOT(ISNA(MATCH("-x",A1:A10,0)))
or
=NOT(ISNA(MATCH(B1,A1:A10,0))) where B1 contains the criteria to search

Bob Umlas
Excel MVP

"Remote Desktop Connection hotkey"
ft.com wrote in message
...
Hi!

I function that would search through column of text values (range with 1
column) and return TRUE if column contains value given as criteria or
FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether this range
contains value x or - x



  #3   Report Post  
Remote Desktop Connection hotkey
 
Posts: n/a
Default

Thanks man.... i can't understand why i couldn't come up whith this myself

"Bob Umlas" wrote:

=NOT(ISNA(MATCH("x",A1:A10,0)))
or
=NOT(ISNA(MATCH("-x",A1:A10,0)))
or
=NOT(ISNA(MATCH(B1,A1:A10,0))) where B1 contains the criteria to search

Bob Umlas
Excel MVP

"Remote Desktop Connection hotkey"
ft.com wrote in message
...
Hi!

I function that would search through column of text values (range with 1
column) and return TRUE if column contains value given as criteria or
FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether this range
contains value x or - x




  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Bob Umlas wrote:
=NOT(ISNA(MATCH("x",A1:A10,0)))
or
=NOT(ISNA(MATCH("-x",A1:A10,0)))
or
=NOT(ISNA(MATCH(B1,A1:A10,0))) where B1 contains the criteria to search


Easier (and efficient) if we substitute ISNUMBER(...) for NOT(ISNA(...).

Even better, if an optional argument in MATCH() was available:

=MATCH(LValue,LRange,0,FALSE)

instead of

=ISNUMBER(MATCH(LValue,LRange,0))

--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default Search column for value and return TRUE or FALSE

I have been searching for over an hour for a solution to my problem. This
post is the closest to my issue but slightly different. Instead of showing
True or False I want it to show Y or N.

Example:
I am trying to answer the question is this a school day.
I have a date in cell C2 that I comparing with a list of non-school days at
I12:I34 (its one column). If the date matches something in the list I want
a N to appear for NON-School Day. If the date does not match it must be a
school day so I want to see Y.

Any help would be greatly appreciated.


"Remote Desktop Connection hotkey" wrote:

Hi!

I function that would search through column of text values (range with 1
column) and return TRUE if column contains value given as criteria or FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether this range
contains value x or - x



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Search column for value and return TRUE or FALSE

HI
Try
=ISNUMBER(MATCH(C2,L12:L34,0))

--
Regards

Roger Govier


"JICDB" wrote in message
...
I have been searching for over an hour for a solution to my problem.
This
post is the closest to my issue but slightly different. Instead of
showing
True or False I want it to show "Y" or "N".

Example:
I am trying to answer the question is this a school day.
I have a date in cell C2 that I comparing with a list of non-school
days at
I12:I34 (it's one column). If the date matches something in the list
I want
a "N" to appear for NON-School Day. If the date does not match it
must be a
school day so I want to see "Y".

Any help would be greatly appreciated.


"Remote Desktop Connection hotkey" wrote:

Hi!

I function that would search through column of text values (range
with 1
column) and return TRUE if column contains value given as criteria or
FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether this
range
contains value x or - x



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default Search column for value and return TRUE or FALSE

Thanks but it didn't work for some reason. I get FALSE in every instance
even if the data is located in the non-school day column.

"Roger Govier" wrote:

HI
Try
=ISNUMBER(MATCH(C2,L12:L34,0))

--
Regards

Roger Govier


"JICDB" wrote in message
...
I have been searching for over an hour for a solution to my problem.
This
post is the closest to my issue but slightly different. Instead of
showing
True or False I want it to show "Y" or "N".

Example:
I am trying to answer the question is this a school day.
I have a date in cell C2 that I comparing with a list of non-school
days at
I12:I34 (it's one column). If the date matches something in the list
I want
a "N" to appear for NON-School Day. If the date does not match it
must be a
school day so I want to see "Y".

Any help would be greatly appreciated.


"Remote Desktop Connection hotkey" wrote:

Hi!

I function that would search through column of text values (range
with 1
column) and return TRUE if column contains value given as criteria or
FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether this
range
contains value x or - x




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Search column for value and return TRUE or FALSE

Hi

It returns True or False for me depending upon whether the date is the
list or not.
Are you using proper Excel dates, or are they Text representations of
the date.
If you type =C2+1 and format the cell as date, do you get a date which
is one day greater than the date in C2?
similarly, what happens if you add 1 to each of the date values in
L12:L34.

To return what you are looking for in terms of "Y or "N" than the
formula needs to be
=IF(ISNUMBER(MATCH(C2,L12:L34,0)),"N","Y")

--
Regards

Roger Govier


"JICDB" wrote in message
...
Thanks but it didn't work for some reason. I get FALSE in every
instance
even if the data is located in the non-school day column.

"Roger Govier" wrote:

HI
Try
=ISNUMBER(MATCH(C2,L12:L34,0))

--
Regards

Roger Govier


"JICDB" wrote in message
...
I have been searching for over an hour for a solution to my problem.
This
post is the closest to my issue but slightly different. Instead of
showing
True or False I want it to show "Y" or "N".

Example:
I am trying to answer the question is this a school day.
I have a date in cell C2 that I comparing with a list of non-school
days at
I12:I34 (it's one column). If the date matches something in the
list
I want
a "N" to appear for NON-School Day. If the date does not match it
must be a
school day so I want to see "Y".

Any help would be greatly appreciated.


"Remote Desktop Connection hotkey" wrote:

Hi!

I function that would search through column of text values (range
with 1
column) and return TRUE if column contains value given as criteria
or
FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether
this
range
contains value x or - x






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 91
Default Search column for value and return TRUE or FALSE

I'm just getting back here to check your message. I did get it to work in
sort of a convaluted way -
=IF(ISNA(VLOOKUP(C3,$I$12:$I$34,1,FALSE)),"S","N") . I'm sure your way is
better more logical so I will try it. Thanks for your quick response and
help!

"Roger Govier" wrote:

Hi

It returns True or False for me depending upon whether the date is the
list or not.
Are you using proper Excel dates, or are they Text representations of
the date.
If you type =C2+1 and format the cell as date, do you get a date which
is one day greater than the date in C2?
similarly, what happens if you add 1 to each of the date values in
L12:L34.

To return what you are looking for in terms of "Y or "N" than the
formula needs to be
=IF(ISNUMBER(MATCH(C2,L12:L34,0)),"N","Y")

--
Regards

Roger Govier


"JICDB" wrote in message
...
Thanks but it didn't work for some reason. I get FALSE in every
instance
even if the data is located in the non-school day column.

"Roger Govier" wrote:

HI
Try
=ISNUMBER(MATCH(C2,L12:L34,0))

--
Regards

Roger Govier


"JICDB" wrote in message
...
I have been searching for over an hour for a solution to my problem.
This
post is the closest to my issue but slightly different. Instead of
showing
True or False I want it to show "Y" or "N".

Example:
I am trying to answer the question is this a school day.
I have a date in cell C2 that I comparing with a list of non-school
days at
I12:I34 (it's one column). If the date matches something in the
list
I want
a "N" to appear for NON-School Day. If the date does not match it
must be a
school day so I want to see "Y".

Any help would be greatly appreciated.


"Remote Desktop Connection hotkey" wrote:

Hi!

I function that would search through column of text values (range
with 1
column) and return TRUE if column contains value given as criteria
or
FALSE
if there is no such value in given column

For example i have range A1:A10 and i want to find out whether
this
range
contains value x or - x






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
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Search one column and return value from next column shwekhaw Excel Discussion (Misc queries) 2 May 3rd 05 09:52 AM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM


All times are GMT +1. The time now is 06:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"