ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   lookup single value in a range and return specified value (https://www.excelbanter.com/excel-worksheet-functions/145702-lookup-single-value-range-return-specified-value.html)

bjw

lookup single value in a range and return specified value
 
I have a value in A9 that i want to look up in range B2:B6 and return an X if
it is there and blank if it is not. How?


PCLIVE

lookup single value in a range and return specified value
 
One way:

=IF(COUNTIF(B:B,A9)0,"X","")

HTH,
Paul

"bjw" wrote in message
...
I have a value in A9 that i want to look up in range B2:B6 and return an X
if
it is there and blank if it is not. How?




bjw

lookup single value in a range and return specified value
 
hmm...thought i tried that already but i must have missed something...
Thanks, it worked!

"PCLIVE" wrote:

One way:

=IF(COUNTIF(B:B,A9)0,"X","")

HTH,
Paul

"bjw" wrote in message
...
I have a value in A9 that i want to look up in range B2:B6 and return an X
if
it is there and blank if it is not. How?





Teethless mama

lookup single value in a range and return specified value
 
=IF(ISNUMBER(MATCH(A9,B2:B6,0)),"X","")


"bjw" wrote:

I have a value in A9 that i want to look up in range B2:B6 and return an X if
it is there and blank if it is not. How?



All times are GMT +1. The time now is 02:16 AM.

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