Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
True or false
How do I have a cell return a yes/no true/false answer.
I want "sheet-1 b1" to see if the same value of "sheet-1 a1" is anywhere in "sheet-2 a1:a10000" and if so return a value of yes or no. Thanks Wally |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
True or false
In Sheet1, B1
=IF(COUNTIF(Sheet2!A1:A10000,A1)0,"Yes","No") HTH "WTG" wrote: How do I have a cell return a yes/no true/false answer. I want "sheet-1 b1" to see if the same value of "sheet-1 a1" is anywhere in "sheet-2 a1:a10000" and if so return a value of yes or no. Thanks Wally |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
True or false
=isnumber(match(a1,sheet2!$a$1:$a$10000,0))
will return true if there's a match. And false if there's no match. You could use: =if(isnumber(match(a1,sheet2!$a$1:$a$10000,0)),"Ye s","No") if you cared about yes/no. WTG wrote: How do I have a cell return a yes/no true/false answer. I want "sheet-1 b1" to see if the same value of "sheet-1 a1" is anywhere in "sheet-2 a1:a10000" and if so return a value of yes or no. Thanks Wally -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help in VBA code! | Excel Discussion (Misc queries) | |||
Shorten a Macro | Excel Discussion (Misc queries) | |||
Help: runtime error - Method seriescollection object_chart failed | Charts and Charting in Excel | |||
Grouped Sheets and Formating | Excel Discussion (Misc queries) | |||
Grand Totals @ Same Place | Excel Worksheet Functions |