Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default comparing side-by-side lists


I have two lists only containing numbers in columns A and B. How can I
see which cells are not in Column B that are in Column A? For
Example:

Cloumn A Column B
1 1
2 2
3 4
4 6
5 7
6 8
7 9
8
9
10

Is there a way that I can have excel return the missing values from
column B (3,5,10)

Thanks


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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default comparing side-by-side lists

=countif(B:B,A1)

in C1, then drag fill down the column. Apply an autofilter to column C and
select 0 in the dropdown

--
Regards,
Tom Ogilvy


"petevang" wrote:


I have two lists only containing numbers in columns A and B. How can I
see which cells are not in Column B that are in Column A? For
Example:

Cloumn A Column B
1 1
2 2
3 4
4 6
5 7
6 8
7 9
8
9
10

Is there a way that I can have excel return the missing values from
column B (3,5,10)

Thanks


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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default comparing side-by-side lists

Assuming the two columns have no empty cells in the range of interest, the
following should work, by marking the 'lonely' cells red in ColA.
This works with numbers only, not with strings.

Sub MarkMissed()

Range("A1").Select

Do Until ActiveCell = Empty
arow = ActiveCell.Row
Match = False

Do Until ActiveCell.Offset(1 - arow, 1) = Empty

If ActiveCell.Offset(1 - arow, 1) = ActiveCell Then
Match = True
Else
End If

arow = arow - 1

Loop

If Match = False Then
Selection.Interior.ColorIndex = 3
End If

ActiveCell.Offset(1, 0).Select

Loop

End Sub


Cheers, Gabor

"petevang" az
alábbiakat írta a következő hírüzenetben:
...

I have two lists only containing numbers in columns A and B. How can I
see which cells are not in Column B that are in Column A? For
Example:

Cloumn A Column B
1 1
2 2
3 4
4 6
5 7
6 8
7 9
8
9
10

Is there a way that I can have excel return the missing values from
column B (3,5,10)

Thanks


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



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
Cannot see both spreadsheets when comparing side by side SSantellan Excel Discussion (Misc queries) 0 January 17th 08 05:28 PM
How2 setup one page distribution report side by side results sailorgirl Charts and Charting in Excel 0 August 20th 07 09:14 PM
Comparing 2 lists side by side petevang Excel Discussion (Misc queries) 2 April 7th 06 02:44 PM
excel should cut & paste lists side by side to save paper Richierich Excel Worksheet Functions 1 March 10th 06 12:42 AM
Converting grid data to side-by-side lists The Chad Excel Discussion (Misc queries) 6 July 27th 05 03:47 PM


All times are GMT +1. The time now is 01:17 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"