Compare Two Sheet

  • Thread starter adeel via OfficeKB.com
  • Start date
A

adeel via OfficeKB.com

I have two sheets with data in follwoing fields (Heads);

| Part Number | Description | Running Numbers |

Now I want to compare these two sheets with Part Number, if Part Number match,
pick up the data from Running Numbers of Sheet 1 & Sheet 2 and give the
Difference of these numbers in a Cell.

Thanks
 
R

Roger Govier

Hi

On Sheet 1, enter in D1 Difference and in D2
=C2-INDEX(Sheet2!C:C,MATCH(A2,Sheet2!A:A,0))
and copy down as required
 
A

adeel via OfficeKB.com

Thanks for your reponse. but the formula not perfectly work at my end, let me
explain the situation again.

I have Data in two sheets with simillar 'Heads' as follows.

A1 B1 C1

Part Number | Description | Running Nmbers |

the part numbers may be same at various random locations in both sheets, I
want to to compare those sheets with Part Number, where Part Number match
pick the value from Running Number and show the difference in a Cell.

Note: Remeber Part Number may found at random locations (example: in Cell A2
of Sheet 1 part number is '2255' same part number may be found in Cell A15 of
Sheet 2)


Roger said:
Hi

On Sheet 1, enter in D1 Difference and in D2
=C2-INDEX(Sheet2!C:C,MATCH(A2,Sheet2!A:A,0))
and copy down as required
I have two sheets with data in follwoing fields (Heads);
[quoted text clipped - 6 lines]
 
R

Roger Govier

Hi

It should work for the description you supply.
If you would like, you can email me a copy of your workbook and I will try
and see what is happening.
To mail direct send to
roger at technology4u dot co dot uk
Change the at and dots to make a valid email address

--
Regards
Roger Govier

adeel via OfficeKB.com said:
Thanks for your reponse. but the formula not perfectly work at my end, let
me
explain the situation again.

I have Data in two sheets with simillar 'Heads' as follows.

A1 B1 C1

Part Number | Description | Running Nmbers |

the part numbers may be same at various random locations in both sheets, I
want to to compare those sheets with Part Number, where Part Number match
pick the value from Running Number and show the difference in a Cell.

Note: Remeber Part Number may found at random locations (example: in Cell
A2
of Sheet 1 part number is '2255' same part number may be found in Cell A15
of
Sheet 2)


Roger said:
Hi

On Sheet 1, enter in D1 Difference and in D2
=C2-INDEX(Sheet2!C:C,MATCH(A2,Sheet2!A:A,0))
and copy down as required
I have two sheets with data in follwoing fields (Heads);
[quoted text clipped - 6 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top