how to see if there's any unique values

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
840
Office Version
  1. 2013
Platform
  1. Windows
I've got data like this below.

All the weights are supposed to be consistent. So for example all 3 pound weights are supposed to be $5, regardless of province. But there could be an error somewhere, such as in the last line.

Is there a way to simply find all the difference prices for each weight? At the moment I'm filtering the Weight column and going through each bucket one by one, which kinda works. But with 50 buckets it's not the easiest way.



ProvWeightPrice
ON3$5
ON5$10
PQ3$5
PQ5$10
BC3$15

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
You could put a formula similar to this in column D (or further to the right wherever the first open column is)

=COUNTIFS($B$2:$B$6,B2,$C$2:$C$6,"<>"&C2)

update the 6 to whatever the final row is of your data OR best practice, define your data range as a dynamic range.

You can then filter on this new column for any values that are not zero as these will be Weights with differing Price values.

NOTE: I am assuming you are using a newer version of Excel which is able to use the COUNTIFS formula. If not, I can modify it into a slightly more complicated array formula that works on older versions.
 
Last edited:
Upvote 0
Thanks!

I tried this in a made up environment but didn't understand the result, which said 2,0,2,0,2.

What do I do with that?
 
Upvote 0
Thanks!

I tried this in a made up environment but didn't understand the result, which said 2,0,2,0,2.

What do I do with that?

Filter to any non-zero values and these will be your potential errors.

Alternatively, if you want a simpler flag you could bound it with an IF like so

=IF(COUNTIFS($B$2:$B$6,B2,$C$2:$C$6,"<>"&C2)=0,"OK","MULTIPLE")
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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