A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Return a value if item does not appear on list



 
 
Thread Tools Display Modes
  #1  
Old June 18th, 2009, 02:36 PM posted to microsoft.public.excel.worksheet.functions
Staceyglow
external usenet poster
 
Posts: 12
Default Return a value if item does not appear on list

I'm sure there is a way to do this with VLOOKUP or a similar function, I just
don't know how.....

I want to compare two lists of numbers. If the second list does not contain
the number, I want to return the value "no" in the cell to the right of the
first number.

Here's an example:

A B C D

List 1 List 2

1 1234 no 1235
2 1235 1237
3 1236 no 1238
4 1237
5 1238
6 1239 no

Ads
  #2  
Old June 18th, 2009, 02:44 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Return a value if item does not appear on list

In B1 enter the below formula and copy down as required

=IF(COUNTIF(D,A1),"","NO")

If this post helps click Yes
---------------
Jacob Skaria


"Staceyglow" wrote:

I'm sure there is a way to do this with VLOOKUP or a similar function, I just
don't know how.....

I want to compare two lists of numbers. If the second list does not contain
the number, I want to return the value "no" in the cell to the right of the
first number.

Here's an example:

A B C D

List 1 List 2

1 1234 no 1235
2 1235 1237
3 1236 no 1238
4 1237
5 1238
6 1239 no

  #3  
Old June 18th, 2009, 03:13 PM posted to microsoft.public.excel.worksheet.functions
Staceyglow
external usenet poster
 
Posts: 12
Default Return a value if item does not appear on list

Worked like a charm!! Thanks!

"Jacob Skaria" wrote:

In B1 enter the below formula and copy down as required

=IF(COUNTIF(D,A1),"","NO")

If this post helps click Yes
---------------
Jacob Skaria


"Staceyglow" wrote:

I'm sure there is a way to do this with VLOOKUP or a similar function, I just
don't know how.....

I want to compare two lists of numbers. If the second list does not contain
the number, I want to return the value "no" in the cell to the right of the
first number.

Here's an example:

A B C D

List 1 List 2

1 1234 no 1235
2 1235 1237
3 1236 no 1238
4 1237
5 1238
6 1239 no

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.