ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Simple lookup question (https://www.excelbanter.com/excel-discussion-misc-queries/262852-simple-lookup-question.html)

ryanholliday

Simple lookup question
 
I have a value in A1. I want to look in columns B:K to see if the value in
A1 exists anywhere in those columns (regardless of row). Just a simple "yes"
or "no" would suffice to tell me whether the A1 value exists anywhere in
columns B:K.

Thanks much,
Ryan

Jacob Skaria

Simple lookup question
 
Try

=IF(COUNTIF(B:K,A1),"Yes","No")

--
Jacob (MVP - Excel)


"ryanholliday" wrote:

I have a value in A1. I want to look in columns B:K to see if the value in
A1 exists anywhere in those columns (regardless of row). Just a simple "yes"
or "no" would suffice to tell me whether the A1 value exists anywhere in
columns B:K.

Thanks much,
Ryan



All times are GMT +1. The time now is 05:29 AM.

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