Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
petevang
 
Posts: n/a
Default comparing two lists in excel


I have two columns of data (A and B) whos cells consist of only numbers
in order from 1 to 50. Columns A's ranges from 1 to 50, and every
whole number is present. Column B is missing a few numbers. I want to
see what numbers are not in column B but are in column A. Is their a
formula that could highlight the missing cells?:)


--
petevang
------------------------------------------------------------------------
petevang's Profile: http://www.excelforum.com/member.php...o&userid=25034
View this thread: http://www.excelforum.com/showthread...hreadid=530786

  #2   Report Post  
Posted to microsoft.public.excel.misc
George Nicholson
 
Posts: n/a
Default comparing two lists in excel

In a third column you could use VLookup to search for an exact match. If it
returns #N/A then the value is not in the list:
=IF(ISERROR(VLookup(A2,B$2:B$50,1,False)),"Missing ","") (copied down the
length of values in A)

Paraphrased: If the exact value of A is not present in the range B2:B50
(i.e., if Vlookup returns the #N/A error), return "Missing", otherwise
return "".

Of course, adjust the ranges to your actual data layout.

HTH,
--
George Nicholson

Remove 'Junk' from return address.


"petevang" wrote in
message ...

I have two columns of data (A and B) whos cells consist of only numbers
in order from 1 to 50. Columns A's ranges from 1 to 50, and every
whole number is present. Column B is missing a few numbers. I want to
see what numbers are not in column B but are in column A. Is their a
formula that could highlight the missing cells?:)


--
petevang
------------------------------------------------------------------------
petevang's Profile:
http://www.excelforum.com/member.php...o&userid=25034
View this thread: http://www.excelforum.com/showthread...hreadid=530786



  #3   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default comparing two lists in excel

Hi!

Try this:

Assume the numbers in column A are in the range A1:A50. The numbers in
column B are in the range B1:B40.

Select the range, A1:A50.
Goto FormatConditional Formatting
Formula is: =COUNTIF(B$1:B$40,A1)=0
Click the Format button
Select the style(s) desired
OK out

Biff

"petevang" wrote in
message ...

I have two columns of data (A and B) whos cells consist of only numbers
in order from 1 to 50. Columns A's ranges from 1 to 50, and every
whole number is present. Column B is missing a few numbers. I want to
see what numbers are not in column B but are in column A. Is their a
formula that could highlight the missing cells?:)


--
petevang
------------------------------------------------------------------------
petevang's Profile:
http://www.excelforum.com/member.php...o&userid=25034
View this thread: http://www.excelforum.com/showthread...hreadid=530786



  #4   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default comparing two lists in excel


in cell C1 put

=VLOOKUP(A1,B$1:B$99,1,FALSE)

and formula-copy this for the number of rows.

'B$1:B$99' should be the extent of the data in column B

The #N/A rows are the items you are looking for.

--

petevang Wrote:
I have two columns of data (A and B) whos cells consist of only numbers
in order from 1 to 50. Columns A's ranges from 1 to 50, and every
whole number is present. Column B is missing a few numbers. I want to
see what numbers are not in column B but are in column A. Is their a
formula that could highlight the missing cells?:)



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=530786

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Comparing 2 Excel Lists and Appending if entries are in both [email protected] Excel Discussion (Misc queries) 3 February 8th 06 04:17 PM
How to stop "Synchronized Scrolling" in Excel Workbook comparing sagorb Excel Worksheet Functions 1 February 6th 06 10:50 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Using excel to "scrub" lists Tony Excel Worksheet Functions 1 October 24th 05 11:56 PM


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

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"