Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
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: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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
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: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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to pair each item on one list to each item on another list Peter R. Excel Worksheet Functions 1 August 24th 07 03:04 AM
Select an item from dropdown list but return value from adjacent c StevanT Excel Discussion (Misc queries) 4 March 17th 07 12:39 PM
How do I return a value by clicking an associated list box item rpbsr Excel Worksheet Functions 1 September 1st 06 01:41 AM
Match return #NA ...though item exists! Sige Excel Discussion (Misc queries) 2 January 12th 06 02:49 PM
Selecting an Item from a List and getting a different item to pop. Matt Excel Worksheet Functions 1 December 7th 04 02:37 PM


All times are GMT +1. The time now is 06:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"