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 Compare Sheets values in two colums

I have two sheets and want to match them together.
Example:
Sheet1.
A C
12 555
19 666

Sheet2

A C
12 555
22 333
I want to match if all numbers in Sheet2 are in Sheet1.
I am using =IF((SUMPRODUCT(--('Oracle viðföng'!$C$2:$C$1060=A3);--('Oracle
viðföng'!$E$2:$E$1060=C3);'Oracle
viðföng'!$J$2:$J$1060)=0);IF(OR(SUMPRODUCT(--('Oracle
viðföng'!$C$2:$C$1060=A3);--('Oracle viðföng'!$E$2:$E$1060=C3);'Oracle
viðföng'!$J$2:$J$1060)<0;SUMPRODUCT(--('Oracle
viðföng'!$C$2:$C$1060=A3);--('Oracle viðföng'!$E$2:$E$1060=C3);'Oracle
viðföng'!$J$2:$J$1060)0);#REF!;"1"))
But I always get #REF
Can anybody solve this problem or have another solution?

Thanks Geir
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Compare Sheets values in two colums

I want to match if all numbers in Sheet2 are in Sheet1

Presume you want to check col A in Sheet2 vs col A in Sheet1,
likewise for col B

In Sheet2,
In C1: =IF(A1="","",--ISNUMBER(MATCH(A1,Sheet1!A:A,0)))
Copy C1 to D1, fill down to the last row of source data in cols A/B

Cols C & D will return the corresponding results:
0 for unmatched numbers
1 for matched numbers
blank: "" for any blank source cells

P/s: Change the commas in the expression to semicolons to suit your version
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Geir" wrote:
I have two sheets and want to match them together.
Example:
Sheet1.
A C
12 555
19 666

Sheet2

A C
12 555
22 333
I want to match if all numbers in Sheet2 are in Sheet1.
I am using =IF((SUMPRODUCT(--('Oracle viðföng'!$C$2:$C$1060=A3);--('Oracle
viðföng'!$E$2:$E$1060=C3);'Oracle
viðföng'!$J$2:$J$1060)=0);IF(OR(SUMPRODUCT(--('Oracle
viðföng'!$C$2:$C$1060=A3);--('Oracle viðföng'!$E$2:$E$1060=C3);'Oracle
viðföng'!$J$2:$J$1060)<0;SUMPRODUCT(--('Oracle
viðföng'!$C$2:$C$1060=A3);--('Oracle viðföng'!$E$2:$E$1060=C3);'Oracle
viðföng'!$J$2:$J$1060)0);#REF!;"1"))
But I always get #REF
Can anybody solve this problem or have another solution?

Thanks Geir

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
Match name colums and paste corresponding values sumit Excel Discussion (Misc queries) 1 November 15th 06 11:58 AM
Pasting values from 2 colums into 1 on a seperate workbook? [email protected] Excel Worksheet Functions 2 August 16th 06 12:06 AM
how 2sum values in column C, IF 'X' & 'Y' in colums A & B =TRUE JW in Dubai Excel Worksheet Functions 2 July 1st 06 06:34 AM
Get matching values and formulas from ajoining colums of dropdown Pete Elbert Excel Discussion (Misc queries) 1 March 18th 06 05:49 AM
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:58 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"