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.


[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Cartridge[/TD]
[TD]Part Number[/TD]
[TD]Price[/TD]
[TD]Black Yield[/TD]
[TD]Color Yield[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Black Toner[/TD]
[TD]12345B[/TD]
[TD]60[/TD]
[TD]40000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Black Toner[/TD]
[TD]12345B[/TD]
[TD]60[/TD]
[TD]40000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Black Toner[/TD]
[TD]12345B[/TD]
[TD]56[/TD]
[TD]4000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Black Toner[/TD]
[TD]54321B[/TD]
[TD]40[/TD]
[TD]30000[/TD]
[TD]30000[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Cyan Toner[/TD]
[TD]54321C[/TD]
[TD]80[/TD]
[TD]0[/TD]
[TD]25000[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Magenta Toner[/TD]
[TD]54321M[/TD]
[TD]80[/TD]
[TD]0[/TD]
[TD]25000[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Yellow Toner[/TD]
[TD]54321Y[/TD]
[TD]80[/TD]
[TD]0[/TD]
[TD]25000[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Black Toner[/TD]
[TD]54321B[/TD]
[TD]40[/TD]
[TD]30000[/TD]
[TD]30000[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Cyan Toner[/TD]
[TD]54321C[/TD]
[TD]80[/TD]
[TD]0[/TD]
[TD]25000[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Magenta Toner[/TD]
[TD]54321M[/TD]
[TD]80[/TD]
[TD]0[/TD]
[TD]25000[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Yellow Toner[/TD]
[TD]54321Y[/TD]
[TD]80[/TD]
[TD]0[/TD]
[TD]25000[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Black Toner[/TD]
[TD]54321B[/TD]
[TD]37.50[/TD]
[TD]30000[/TD]
[TD]30000[/TD]
[/TR]
[TR]
[TD]14[/TD]
[TD]Cyan Toner[/TD]
[TD]54321C[/TD]
[TD]88[/TD]
[TD]0[/TD]
[TD]24000[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]Magenta Toner[/TD]
[TD]54321M[/TD]
[TD]88[/TD]
[TD]0[/TD]
[TD]24000[/TD]
[/TR]
[TR]
[TD]16[/TD]
[TD]Yellow Toner[/TD]
[TD]54321Y[/TD]
[TD]88[/TD]
[TD]0[/TD]
[TD]24000[/TD]
[/TR]
</tbody>[/TABLE]


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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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