LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default Find a Cell Value In a Range

Damn! I can't believe I left out the double unary... AGAIN... I seem to have
this mental block about typing them for some reason. Thanks for noting that.

Rick


"Wigi" wrote in message
...
Well Rick

I could have left out the IF, but you need that one to return 1 and 0, not
TRUE and FALSE. That's how I read the question.

Another way to get 1 and 0 is:

=--(COUNTIF(range,valuetolookup)0)


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Rick Rothstein (MVP - VB)" wrote:

Since the desired results are 1 if true and 0 if false, you can eliminate
the IF function call...

=COUNTIF(range,valuetolookup)0

Rick


"Wigi" wrote in message
...

COUNTIF function does this for you.

=IF(COUNTIF(range,valuetolookup)0,1,0)



--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Michael" wrote:

I would like to look-up a cell's value in a range of cells and return
1
if it
exists or zero if it does not exist in the specified range. I have got
to
believe this is a fairly common need. Can anyone help me out with
this.






 
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
How do I find the next blank cell in a range? EazyCure Excel Worksheet Functions 6 June 11th 07 09:14 PM
Find Cell in Named Range David Excel Worksheet Functions 3 May 8th 07 06:00 AM
Find if any cell in range is above Zero [email protected] Excel Discussion (Misc queries) 3 April 19th 06 11:01 AM
find the cell above any number in any range steve alcock Excel Worksheet Functions 12 May 27th 05 05:48 AM
find a cells from a range of cell kelvintaycc Excel Worksheet Functions 2 April 2nd 05 07:20 PM


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