Matching values with multiple criteria

chrisc559

New Member
Joined
Jun 18, 2004
Messages
15
Hi all,

I thought I had this sorted from some previous help (here) but i am struggling again :oops: .

I have 2 worksheets with similar data as below



Sample A
Book4.xls
ABCDE
1SampleA
2ClientNameISINSecurityHoldingAmountBookCost
3ClientDBMG0630Q1033Stock3206.260022,100.00
4ClientBBMG0630Q1033Stock3120.000013,100.00
5ClientABMG0630Q1033Stock31,199.2500127,200.00
6ClientCFI0009004204Stock57,847,620.00000.00
7ClientDFI0009004204Stock51,190,476.0000171,221.15
8ClientDFI0009620777Stock6250,000.00000.00
9ClientAGB0006061740Stock4111,155.3260160,100.00
10ClientBGB0006061740Stock412,444.312018,100.00
11ClientDGB0033843144Stock132,537.000036,814.75
12ClientBGB0033843144Stock124,352.210027,699.98
13ClientAGB0033843144Stock1159,199.0000183,100.00
14ClientDU002133Stock258,000.000058,100.00
Sample A


Sample B
Book4.xls
ABCDE
1SampleB
2ClientNameISINSecurityHoldingAmountBookCost
3ClientAGB0033843144Stock1160,000.0000180,000.00
4ClientAU002133Stock2296,000.0000296,100.00
5ClientABMG0630Q1033Stock31,199.2500127,200.00
6ClientAGB0006061740Stock4111,155.3260160,100.00
7ClientBGB0033843144Stock125,000.000027,699.98
8ClientBFI0009004204Stock512,444.312017,100.00
9ClientCFI0009004204Stock57,847,620.00000.00
10ClientDU002133Stock258,000.000058,100.00
11ClientDBMG0630Q1033Stock3206.260022,100.00
12ClientDGB0033843144Stock132,537.000036,814.75
13ClientDFI0009004204Stock51,190,476.0000171,221.15
14ClientDFI0009620777Stock6250,000.00000.00
Sample B


The problem is that the data on both sheets come from different sources and the only unique identifiers are ClientName and ISIN, and not necessarily in order. I'm trying to put together a formula that compares the holding amounts from both sheets.

As a clarification, Sample A, Client A holds 159,199 of Stock 1, but on Sample B the same client holds 160,000 of Stock 1. I want the formula to return error, or similar if this happens.

Any help appreciated! Thanks

:biggrin:
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

Can you not combine cells in columns A and C then use VLOOKUP from one sheet to another, checking the difference?
 

Forum statistics

Threads
1,136,613
Messages
5,676,806
Members
419,652
Latest member
jjakub33

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top