ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Finding a Value (https://www.excelbanter.com/excel-discussion-misc-queries/203336-finding-value.html)

SueK

Finding a Value
 
This seems to be an easy Excel issue, but I can't find a way to do it. I
want to determine if a value in column A appears anywhere in column B. If it
does, I want to return the column A value in column C. If it doesn't, I want
to return "OK". I am assuming there should be some nesting function in an IF
function, but I can't figure it out!

Teethless mama

Finding a Value
 
=IF(COUNTIF(B:B,A1),A1,"OK")


"SueK" wrote:

This seems to be an easy Excel issue, but I can't find a way to do it. I
want to determine if a value in column A appears anywhere in column B. If it
does, I want to return the column A value in column C. If it doesn't, I want
to return "OK". I am assuming there should be some nesting function in an IF
function, but I can't figure it out!


T. Valko

Finding a Value
 
Try this:

=IF(COUNTIF(B$1:B$100,A1),A1,"OK")


--
Biff
Microsoft Excel MVP


"SueK" wrote in message
...
This seems to be an easy Excel issue, but I can't find a way to do it. I
want to determine if a value in column A appears anywhere in column B. If
it
does, I want to return the column A value in column C. If it doesn't, I
want
to return "OK". I am assuming there should be some nesting function in an
IF
function, but I can't figure it out!




SueK

Finding a Value
 
THANK YOU!! That did the trick!

"Teethless mama" wrote:

=IF(COUNTIF(B:B,A1),A1,"OK")


"SueK" wrote:

This seems to be an easy Excel issue, but I can't find a way to do it. I
want to determine if a value in column A appears anywhere in column B. If it
does, I want to return the column A value in column C. If it doesn't, I want
to return "OK". I am assuming there should be some nesting function in an IF
function, but I can't figure it out!



All times are GMT +1. The time now is 03:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com