Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Search for value on another sheet, return Y/N

I'm trying to have Excel consider EACH unique value in Column A (e.g. A2=1,
A3=2, A4=3...A6958=6957) on Sheet 1, compare each of these unique values with
an entire range of values in Column A (A2:A4352) on Sheet 2 (the Sheet 2
values in Column A are a subset of those on Sheet 1), and if a match found in
that range to return a value of Yes (or True)...if not, return a value of No
(or False)...to Column C in Sheet 1. Clear as mud???

Help! Thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Search for value on another sheet, return Y/N

=isnumber(match(a2,sheet2!$a$2:$a$4352,0))

Will return true if there's a match or false if there isn't a match.



Not Excelerated wrote:

I'm trying to have Excel consider EACH unique value in Column A (e.g. A2=1,
A3=2, A4=3...A6958=6957) on Sheet 1, compare each of these unique values with
an entire range of values in Column A (A2:A4352) on Sheet 2 (the Sheet 2
values in Column A are a subset of those on Sheet 1), and if a match found in
that range to return a value of Yes (or True)...if not, return a value of No
(or False)...to Column C in Sheet 1. Clear as mud???

Help! Thanks in advance!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Search for value on another sheet, return Y/N

You the man Dave! Thanks for your quick response, it works perfectly!
Incidentally, found a similar solution using COUNTIF:
=IF(COUNTIF('Sheet2'!$A$2:$A$4352,A2),"Y","N")

More than one way to skin a squirrel...sorry PETA people...just a saying.

Chris

"Dave Peterson" wrote:

=isnumber(match(a2,sheet2!$a$2:$a$4352,0))

Will return true if there's a match or false if there isn't a match.



Not Excelerated wrote:

I'm trying to have Excel consider EACH unique value in Column A (e.g. A2=1,
A3=2, A4=3...A6958=6957) on Sheet 1, compare each of these unique values with
an entire range of values in Column A (A2:A4352) on Sheet 2 (the Sheet 2
values in Column A are a subset of those on Sheet 1), and if a match found in
that range to return a value of Yes (or True)...if not, return a value of No
(or False)...to Column C in Sheet 1. Clear as mud???

Help! Thanks in advance!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Search for value on another sheet, return Y/N

or to just see true/false:
=(COUNTIF('Sheet2'!$A$2:$A$4352,A2)0)

You may find =match() a little quicker with lots of data--but =countif() is nice
when you have more than one column or row.

Not Excelerated wrote:

You the man Dave! Thanks for your quick response, it works perfectly!
Incidentally, found a similar solution using COUNTIF:
=IF(COUNTIF('Sheet2'!$A$2:$A$4352,A2),"Y","N")

More than one way to skin a squirrel...sorry PETA people...just a saying.

Chris

"Dave Peterson" wrote:

=isnumber(match(a2,sheet2!$a$2:$a$4352,0))

Will return true if there's a match or false if there isn't a match.



Not Excelerated wrote:

I'm trying to have Excel consider EACH unique value in Column A (e.g. A2=1,
A3=2, A4=3...A6958=6957) on Sheet 1, compare each of these unique values with
an entire range of values in Column A (A2:A4352) on Sheet 2 (the Sheet 2
values in Column A are a subset of those on Sheet 1), and if a match found in
that range to return a value of Yes (or True)...if not, return a value of No
(or False)...to Column C in Sheet 1. Clear as mud???

Help! Thanks in advance!


--

Dave Peterson


--

Dave Peterson
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
Search and return John21 Excel Worksheet Functions 2 August 7th 06 06:00 PM
Search for first instance of text & return the value LisaChica Excel Worksheet Functions 12 June 14th 06 05:59 AM
search for and return more than one row in a sheet [email protected] Excel Worksheet Functions 1 June 1st 06 12:14 AM
Search array and return element No Ron Excel Worksheet Functions 7 May 17th 06 05:27 AM
Search and replace with Carriage return Andibevan Excel Discussion (Misc queries) 2 May 17th 05 12:43 PM


All times are GMT +1. The time now is 12:08 PM.

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"