ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Stumped (https://www.excelbanter.com/excel-discussion-misc-queries/251550-stumped.html)

lightbulb

Stumped
 
I want column W9 of sheet 2 to say NEW if G9 on sheet 2 appears in cells
B2:B50 (exact match, not partial) on sheet 1. Help?


Sean Timmons

Stumped
 
=IF(ISNA(VLOOKUP(G9,sheet1!B2:B50)),"","NEW")

Will leave blank if not an exact match.

"lightbulb" wrote:

I want column W9 of sheet 2 to say NEW if G9 on sheet 2 appears in cells
B2:B50 (exact match, not partial) on sheet 1. Help?


Eduardo

Stumped
 
Hi,
See your other post

"lightbulb" wrote:

I want column W9 of sheet 2 to say NEW if G9 on sheet 2 appears in cells
B2:B50 (exact match, not partial) on sheet 1. Help?


Jim Thomlinson

Stumped
 
Vlookup requires 3 arguments and you only have 2 so it will not allow you to
enter it. Additioanlly you have missed the optional 4th argument which means
that it is doing a sorted lookup which may not find the value. Match would be
a better choice for what you are doing instead of Vlookup.

=IF(ISNA(MATCH(G9,Sheet1!B2:B50, 0)),"","NEW")
--
HTH...

Jim Thomlinson


"Sean Timmons" wrote:

=IF(ISNA(VLOOKUP(G9,sheet1!B2:B50)),"","NEW")

Will leave blank if not an exact match.

"lightbulb" wrote:

I want column W9 of sheet 2 to say NEW if G9 on sheet 2 appears in cells
B2:B50 (exact match, not partial) on sheet 1. Help?



All times are GMT +1. The time now is 11:09 PM.

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