June 3, 2004
3:17 AM   RSS feed for this thread Subscribe

ExcelFilter: I want to determine if a given value is in a range of cells. A simple true/false evaluation would be sufficient, though returning a reference to the cell might be nice.
posted by namespan to (4 comments total)
COUNTIF will tell you how many times an item appeared in a range.

Therefore you can stick an IF around this and get:

=IF(COUNTIF([your range],[your value]) > 0, "yes in range", "no is not")

One example would be:

[your range] could be A1:A77
[your value] could be 13

in which case it would show you whether or not the value 13 appeared in the range A1:A77.
posted by ralawrence at 3:44 AM on June 3, 2004


Returning a reference to the cell is going to need a bit of VBA I think.
posted by ralawrence at 3:46 AM on June 3, 2004


MATCH returns a reference, so it might do exactly what you want, but I think it only works for a single row or column, not an arbitrary range of cells.
posted by chrismear at 6:00 AM on June 3, 2004


MATCH is very nearly what I'm looking for, and a single row or column will probably work for this case -- thanks chrismear! An arbitrary two-dimensional tool would be nice to have around, though.
posted by namespan at 10:21 AM on June 3, 2004


« Older Fresh juice overload? I just b...   |   I broke Photoshop! [color-rela... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
How to read PDF files on Amazon Kindle? July 21, 2008
Decimal seconds, please. June 10, 2008
I know there is a way to do this! There HAS to be! January 13, 2008
Spreadsheet program with images in cells? October 23, 2007
Pre-1900 dates in Excel? July 19, 2006