Share via

Finding Duplicate Bin Locations

Anonymous
2022-12-05T20:59:07+00:00

I am trying to create a formula that will alert me when a part number has one (or more) duplicate bin locations assigned in an Excel spreadsheet.

Suppose that in box A1 I have part number 2839 1/4. (All the part numbers are listed in col. A)

In boxes B1 through E1 I have the following bin locations: B2-11F, 33-3, 49-1, 33-3.

As you can see, bin location 33-3 is mentioned twice by mistake. Such bin location should only be mentioned once.

Therefore I need a formula that will insert an "X" in column I1 alerting me that for that part number there is a duplicate bin location.

Depending on the part number, there is a minimum of one bin location assigned to it and a maximum of seven. So columns B-H are used for the bin locations, but not all columns are used for all the part numbers. For instance, the above example only uses four columns for the bin locations.

A part number could have no duplicate bin locations, or one or more duplicate bin locations.

I am hoping that somebody on this forum can help me.

Thanks.

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Ashish Mathur 102K Reputation points Volunteer Moderator
2022-12-06T00:06:45+00:00

Hi,

Try this formula in cell J2 and copy down

=IF(MAX(FILTER(COUNTIF(C2:I2,C2:I2),COUNTIF(C2:I2,C2:I2)<>0))>1,"Duplicate bin","")

Hope this helps.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Ashish Mathur 102K Reputation points Volunteer Moderator
    2022-12-07T03:52:48+00:00

    You are welcome.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-12-06T17:52:03+00:00

    Thanks Ashish. Your solution seems to be working fine.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-12-05T23:10:52+00:00

    Hi Bernie.

    Unfortunately the formula does not seem to work.

    I am posting an excerpt of my Excel file to OneDrive.

    The link is https://1drv.ms/x/s!AjsGdLUSZVE9gjLRsHr0MBjhqKFF?e=pHUV5q

    You will see that I am getting "Duplicated Bin" even though there is no duplicate.

    Thanks.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2022-12-05T21:54:55+00:00

    In I1, enter the formula

    =IF(COUNTA(A1:H1)>COUNTA(FILTER(UNIQUE(A1:H1,TRUE),A1:H1<>"")),"Duplicated Bin","")

    and copy down.

    Was this answer helpful?

    0 comments No comments