LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How do I compare values in two arrays in Excel?

Maybe this easy formulas play-cum-autofilter serves what you're trying to do

Data assumed running in row2 down in both OS and MS

In MS,
Paste into E2, then array-enter the formula by pressing CTRL+SHIFT+ENTER:
=IF(COUNTA(B2:D2)<3,"",ISNUMBER(MATCH(1,(OS!A$2:A$ 10=B2)*(OS!B$2:B$10=C2)*(OS!C$2:C$10=D2),0)))
Copy E2 down. Then apply autofilter on col E, choose: TRUE, to filter out
the lines corresponding to what's in OS - these will be the lines for your
update. Adapt the ranges to suit the actual extents of your data.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,400 Files:356 Subscribers:53
xdemechanik
---
"Irrylath" wrote:
I receive a spreadsheet from someone outside of my company's network. I take
this spreadsheet and add columns to either side for my company's data.
Example:

Original spreadsheet ("OS")
A B C
1 pear 1354 04-Sep-07
2 lime 2000 01-Jan-08

My spreadsheet ("MS")
A B C D E
1 data pear 1354 04-Sep-07 data
2 data lime 2000 01-Jan-08 data

When the other person adds or changes their information, they send me a copy
of their updated spreadsheet. What I would like to do is use a macro to
compare the array A1:C2 ("OS") to the array B1:D2 ("MS") to find the updates.

Can anyone help me?

 
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
Compare arrays mavxob Excel Worksheet Functions 5 March 6th 08 10:55 PM
Compare arrays youngster Excel Worksheet Functions 3 July 31st 07 04:36 PM
HOW TO COMPARE COLUMN VALUES IN EXCEL? New2Excel Excel Worksheet Functions 0 September 28th 06 07:39 PM
Using CORREL with arrays containing null values rmellison Excel Discussion (Misc queries) 1 November 11th 05 03:02 PM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM


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