Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jamaican jewel
 
Posts: n/a
Default Compare 2 columns and output to a 3rd column

Does anyone know how to compare two text columns containing IP addresses and
output the results to a third column or workbook?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Trevor Shuttleworth
 
Posts: n/a
Default Compare 2 columns and output to a 3rd column

Assuming your IP addresses are in columns A and B starting in Row 2:

Put the following formula in cell C2 (for example)

=IF(COUNTIF(B:B,A2)0,A2 & " in column B",A2 & " not in column B")

And put the following formula in cell D2 (for example)

=IF(COUNTIF(A:A,B2)0,B2 & " in column A",B2 & " not in column A")

Use Fill Down or just drag down the column.

Switch on AutoFilter and filter on contains "not" or does not contain "not"
to highlight whichever you want to see.

Regards

Trevor


"jamaican jewel" wrote in message
...
Does anyone know how to compare two text columns containing IP addresses
and
output the results to a third column or workbook?



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
how to compare 6 columns of text data Deeptiman Excel Worksheet Functions 2 January 20th 06 07:13 PM
Is it possible to merge columns for HMTL output? Heartache Excel Discussion (Misc queries) 3 October 23rd 05 02:12 AM
Automatically Sort By Reference Amount? G Excel Worksheet Functions 7 August 30th 05 10:32 AM
Why does rngDataSource.Rows.Count = 65536 when worksheet Rows=95? [email protected] Excel Discussion (Misc queries) 12 July 22nd 05 12:50 PM
How can I sort SSNs in Terminal Digit Order using Excel? postitnote Excel Worksheet Functions 19 June 10th 05 09:25 PM


All times are GMT +1. The time now is 09:35 AM.

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

About Us

"It's about Microsoft Excel"