Extract records that don't match

tleonardo1

New Member
Joined
Mar 31, 2002
Messages
48
I have a table that has values that I need to compare. The table is as follows:

Warehouse Item Price1 Price2...

So I have the same product in multiple warehouses and I want to make sure the prices match exactly. If they don't I want the rows highlighted. The file has about 10 warehouses and several dozen products and is a couple of thousand lines long.

I tried doing this by having a conditional format that said if cell value does not equal cell value of row above then highlight, hoping that when I autofiltered the list it would reference the cell above it on the FILTERED list, instead it still referenced the cell above it befoire the filter so that did not work. Any ideas on how to handle this?

Thank you.

Tony
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
What does the data look like exactly? Your question makes it look like:

column A warehouse
column B Item
column C price
column D price2

...if so, what are the prices you want to compare across rows?
 
Upvote 0
I want to compare all prices for the same item regardless of the warehouse they are in. I want to highlight any price discrepencies between items. In other words for all rows that have itemX all Price1 should be the same, all price2 should be the same etc.
 
Upvote 0
okay i see, how many columns after B are you comparing for rows of like ItemID, and do you want the whole row to highlight or just the cells that are non-matching?

I can write you some VBA.
 
Upvote 0
I am comparing 20 rows across. And I would like the cells that are not matching to be highlighted.

Also, not sure if this makes it two hard, but I currently hand seperate the warehouses by region, can you have it do comparisons seperately for warehouses in the southwest region vs the northwest region (this is column A in the original sheet, I break it out manually).
 
Upvote 0

Forum statistics

Threads
1,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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
Back
Top