Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default compare a value to many other values

I want to check if a certain value (cell) is equal to any of a number of
cells (N5:AQ32). If the value equals one or more of the cells i want it to
return "1", if not return "0".

Thanks in adwance.

Viktor
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default compare a value to many other values

Try

=IF(COUNTIF(N5:AQ32,A1)0,1,0)

Mike

"Viktor" wrote:

I want to check if a certain value (cell) is equal to any of a number of
cells (N5:AQ32). If the value equals one or more of the cells i want it to
return "1", if not return "0".

Thanks in adwance.

Viktor

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default compare a value to many other values

another one:

=--(COUNTIF(N5:AQ32,A1)0)

The -- stuff changes True to 1 and false to 0.

Viktor wrote:

I want to check if a certain value (cell) is equal to any of a number of
cells (N5:AQ32). If the value equals one or more of the cells i want it to
return "1", if not return "0".

Thanks in adwance.

Viktor


--

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
compare values NikaM Excel Discussion (Misc queries) 1 December 17th 07 02:23 PM
Compare Values Wiz Excel Worksheet Functions 3 December 1st 06 10:02 AM
Compare values on sheet 1 to values on sheet2 Colin Excel Worksheet Functions 2 August 2nd 06 07:19 PM
compare values hanover Excel Worksheet Functions 3 September 20th 05 10:10 PM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM


All times are GMT +1. The time now is 08:20 AM.

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"