Compare two tables row by row in Excel

santoshks

New Member
Hi,

I need a help to solve a problem. It seems easy but it seems its really hard.

Let me explain little bit first.

I have two tables in an excel sheet.

Table 1 is Order table where orders are placed.

For example in give order table Order 1 has 4 different kinds of shirt with total 6 shirt and so on.

Similarly table 2 is invoice table which represent the invoice for previous order. It is similar to Order Table.

Now my problem is Invoice Table might be different because of following reasons,

1. Item Unavailability
2. Wrong item in order
3. More item in order and so on.

Now what I want to do is compare those two tables and see differences.

Now if you look at table there are **** in some cells, which means those rows are different in some ways compare to other table.

Can some one help me to indicate the different rows, may be by highlighting or adding new color or so on.

I shall be highly grateful.

Order Table
 Order ID SKU Quanity 1 Shirt Small Blue **** 2 1 Shirt Medium Red 1 1 Shirt XL Blue 1 1 Shirt Large Yellow 2 2 Shirt Small Blue 1 2 Shirt Medium Red 1 2 Shirt Large Blue ***** 1 3 Shirt Large Black 1 3 Shirt Large Red 2 3 Shirt XL Black 1 3 Shirt XL Blue 1

<tbody>
</tbody>

Invoice Table
 InvoiceID SKU Quantity 1 Shirt Small Blue 3 1 Shirt Medium Red 1 1 Shirt XL Blue 1 1 Shirt Large Yellow 2 2 Shirt Small Blue 1 2 Shirt Medium Red 1 3 Shirt Large Black 1 3 Shirt Large Red 2 3 Shirt XL Black 1 3 Shirt XL Blue 1 3 Shirt XL Red**** 1 3 Shirt XL Green**** 1

<tbody>
</tbody>

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

cpatel13

Board Regular
Hi,

I need a help to solve a problem. It seems easy but it seems its really hard.

Let me explain little bit first.

I have two tables in an excel sheet.

Table 1 is Order table where orders are placed.

For example in give order table Order 1 has 4 different kinds of shirt with total 6 shirt and so on.

Similarly table 2 is invoice table which represent the invoice for previous order. It is similar to Order Table.

Now my problem is Invoice Table might be different because of following reasons,

1. Item Unavailability
2. Wrong item in order
3. More item in order and so on.

Now what I want to do is compare those two tables and see differences.

Now if you look at table there are **** in some cells, which means those rows are different in some ways compare to other table.

Can some one help me to indicate the different rows, may be by highlighting or adding new color or so on.

I shall be highly grateful.

Order Table
 Order ID SKU Quanity 1 Shirt Small Blue **** 2 1 Shirt Medium Red 1 1 Shirt XL Blue 1 1 Shirt Large Yellow 2 2 Shirt Small Blue 1 2 Shirt Medium Red 1 2 Shirt Large Blue ***** 1 3 Shirt Large Black 1 3 Shirt Large Red 2 3 Shirt XL Black 1 3 Shirt XL Blue 1

<tbody>
</tbody>

Invoice Table
 InvoiceID SKU Quantity 1 Shirt Small Blue 3 1 Shirt Medium Red 1 1 Shirt XL Blue 1 1 Shirt Large Yellow 2 2 Shirt Small Blue 1 2 Shirt Medium Red 1 3 Shirt Large Black 1 3 Shirt Large Red 2 3 Shirt XL Black 1 3 Shirt XL Blue 1 3 Shirt XL Red**** 1 3 Shirt XL Green**** 1

<tbody>
</tbody>

Hie,
But which order you want to make it as a base, i mean in which order you like to make changes highlighted?

santoshks

New Member
Hie,
But which order you want to make it as a base, i mean in which order you like to make changes highlighted?

I don't understand what you mean but let me simplify little bit more.

There are 2 tables as shown above.

Each table has many rows and most of the rows are similar, but there might be some rows which are different.

In order table rows which have **** are different as they are not in invoice table and vice versa with invoice table.

So I just want to highlight those rows in each table which are not in both table.

Or create new table in same sheet which will have rows those are not in both table.

I hope you understand what I mean.

Replies
9
Views
185
Replies
3
Views
280
Replies
22
Views
2K
Replies
5
Views
508
Replies
3
Views
237

1,172,134
Messages
5,879,236
Members
433,412
Latest member
diakaoma

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.

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

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