Check for inconsistent values - example: one part number: multiple prices, other values

Brusky

New Member
Joined
Dec 11, 2014
Messages
30
hi,
I am looking for a way to identify errors in pricing. The error occurs where multiple products use the same part sku. In some rows the data the price and other values are different for the part sku for these items.
Below is an example for toner cartridges that can be used for more than one printer model. The corresponding values are supposed to be the same for each unique part number, but some are different. The mismatching-incorrect prices and yields for the same part number are in red.


ABCDE
1CartridgePart NumberPriceBlack YieldColor Yield
2Black Toner12345B60400000
3Black Toner12345B60400000
4Black Toner12345B5640000
5Black Toner54321B403000030000
6Cyan Toner54321C80025000
7Magenta Toner54321M80025000
8Yellow Toner54321Y80025000
9Black Toner54321B403000030000
10Cyan Toner54321C80025000
11Magenta Toner54321M80025000
12Yellow Toner54321Y80025000
13Black Toner54321B37.503000030000
14Cyan Toner54321C88024000
15Magenta Toner54321M88024000
16Yellow Toner54321Y88024000

<tbody>
</tbody>


I need to able to find these type of errors for multiple columns, for example prices and yields and other values.
What formula, function would best identify mismatching corresponding values (price, etc) where they need to be the same value for a their part number?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Re: How to check for inconsistent values - example: one part number: multiple prices, other values


Book1
ABCDEF
1CartridgePart NumberPriceBlack YieldColor Yieldconsistent?
2Black Toner12345B60400000
3Black Toner12345B60400000
4Black Toner12345B5640000should be: 60|40000|0
5Black Toner54321B403000030000
6Cyan Toner54321C80025000
7Magenta Toner54321M80025000
8Yellow Toner54321Y80025000
9Black Toner54321B403000030000
10Cyan Toner54321C80025000
11Magenta Toner54321M80025000
12Yellow Toner54321Y80025000
13Black Toner54321B37.53000030000should be: 40|30000|30000
14Cyan Toner54321C88024000should be: 80|0|25000
15Magenta Toner54321M88024000should be: 80|0|25000
16Yellow Toner54321Y88024000should be: 80|0|25000
Sheet1


In F2 control+shift+enter, not just enter, and copy down:

=IF(COUNTIFS($B$2:B2,B2)=1,"",IF(ISNA(MATCH($B2&"|"&$C2&"|"&$D2&"|"&$E2,$B$1:B1&"|"&$C$1:C1&"|"&$D$1:D1&"|"&$E$1:E1,0)),"should be: "&INDEX($C$1:C1&"|"&$D$1:D1&"|"&$E$1:E1,MATCH($B2,$B$1:B1,0)),""))
 
Upvote 0
Re: How to check for inconsistent values - example: one part number: multiple prices, other values

this is great, thanks!!
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,664
Members
449,045
Latest member
Marcus05

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