Restricting a duplicate combination of entries

mrh001

New Member
Joined
Feb 10, 2010
Messages
3
I would like to restrict duplicate entries from being entered. My criteria for a duplicate entry is a COMBINATION of a number in Column A AND a number Column E (on the same row) is identical to a combination in Columns A and E on some other row - this is a duplicate entry and would not be allowed, however, duplicate numbers are allowed individually in either Column A or Column E. If a duplicate is detected, I would like to restrict the number from being entered as well as give the user an error message, asking the user to enter an alternate number.

Note, a blank in either <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:State w:st="on"><st1:place w:st="on">Column</st1:place></st1:State> A or Column E would be allowed and is not considered to form a duplicate combination.

Hope I am clear in my problem statement, if not I will try to clarify further if needed.

Any help would be appreciated, thanks in advance! <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

<o:p> </o:p>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
This is the suggestion

in each row in an empty cell concantenate the corresponding cells in A and E

for example in row 2 in the empty cell in the same row (suppose this is K2) type this formula
=A2&E2
copy K2 down;.

now you can remove the rows with duplicates in column K. There are many references in google search;. I think in excel 2007 the provision is already there.
 
Upvote 0

Forum statistics

Threads
1,223,902
Messages
6,175,278
Members
452,629
Latest member
SahilPolekar

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