Avoid Duplicate Entry

nabeelahmed

Board Regular
Joined
Jun 19, 2020
Messages
76
Office Version
  1. 365
Platform
  1. Windows
Dear Friends,

Hope alls well. I have a sheet below where i want to avoid from duplication while entering data,, Criteria to find the duplication is Item Tag# with condition of total qty received for example if i already created a PR(Purchased reqisition for a Item 1234 and still not received any quantity against that Tag# then if i will re-enter the same Item tag# to re-order again then i should be notify that i am creating duplicate entry whether it can be with formula or VBA.. Please guide me.. Thanks

Book1
BCHKLR
1DatePR#Item DescriptionRe-Order QtyItem Tag#Total Qty Received
201-Sep1020BBBB1012340
301-Sep1020CCCC1012360
401-Sep1020DDDD2045610
501-Sep1020EEEE2545620
6
7
8
9
Sheet1
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi NabeelAhmed,

You could use Data Validation to prevent or warn when a duplicate is entered, or you could use Conditional Formatting to highlight duplicates.

NabeelAhmed.xlsx
BCHKLR
1DatePR#Item DescriptionRe-Order QtyItem Tag#Total Qty Received
21-Sep-201020BBBB1012340
31-Sep-201020CCCC1012360
41-Sep-201020DDDD2045610
51-Sep-201020EEEE2545620
61222
71234
81233
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L15Expression=COUNTIF(L:L,L2)>1textNO
Cells with Data Validation
CellAllowCriteria
L2:L8Custom=COUNTIF(L:L,L2)=1
 
Upvote 0
Hi NabeelAhmed,

You could use Data Validation to prevent or warn when a duplicate is entered, or you could use Conditional Formatting to highlight duplicates.

NabeelAhmed.xlsx
BCHKLR
1DatePR#Item DescriptionRe-Order QtyItem Tag#Total Qty Received
21-Sep-201020BBBB1012340
31-Sep-201020CCCC1012360
41-Sep-201020DDDD2045610
51-Sep-201020EEEE2545620
61222
71234
81233
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L15Expression=COUNTIF(L:L,L2)>1textNO
Cells with Data Validation
CellAllowCriteria
L2:L8Custom=COUNTIF(L:L,L2)=1
Dear Toadstool,

Thanks for your response, actually i have a condition too that if previous entered item tag # total qty is more than 0(means if i have received item against that order) then i want to allow the entry for smae item tag number in order to replenish the stock.
 
Upvote 0
The Conditional Format can be changed. This will highlight only if zero qty has been entered for the same tag, but once any qty has been entered it won't highlight any further duplicates.

NabeelAhmed.xlsx
BCHKLR
1DatePR#Item DescriptionRe-Order QtyItem Tag#Total Qty Received
21-Sep-201020BBBB1012341
31-Sep-201020CCCC1012360
41-Sep-201020DDDD2045610
51-Sep-201020EEEE2545620
61222
71234
81233
91234
101234
Sheet1 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L15Expression=AND(COUNTIF(L:L,L2)>1,SUMIFS(R:R,L:L,L2)=0)textNO
 
Upvote 0
The Conditional Format can be changed. This will highlight only if zero qty has been entered for the same tag, but once any qty has been entered it won't highlight any further duplicates.

NabeelAhmed.xlsx
BCHKLR
1DatePR#Item DescriptionRe-Order QtyItem Tag#Total Qty Received
21-Sep-201020BBBB1012341
31-Sep-201020CCCC1012360
41-Sep-201020DDDD2045610
51-Sep-201020EEEE2545620
61222
71234
81233
91234
101234
Sheet1 (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L15Expression=AND(COUNTIF(L:L,L2)>1,SUMIFS(R:R,L:L,L2)=0)textNO

Dear Thanks for your response but its not helpful for me as i have to repeat the item number , i want to be notified only for the reason if i had requested for the same item number before and that specific item received or not...

Regards
 
Upvote 0
I'm sorry but I don't understand exactly what you're trying to do.
 
Upvote 0
I'm sorry but I don't understand exactly what you're trying to do.
[/
Its ok.. Actually i am purchasing different products.. what i want.. suppose there is an item "Gloves" with item code 3961 and the quantity i ordered is 10. Which is not delivered and still pending and i will again raise next order for the same product which is still pending i want to be notified that i am creating duplicate entry and if the previous ordered quantity has been received and nothing is pending then nothing should be highlighted and i could raise new order.. this is what i want whenever i will raise new order for any item and if there is already an order which is yet to be delivered then i want notification/Msg. Hope you will understand
 
Upvote 0
NabeelAhmed.xlsx
BCHKLR
1DatePR#Item DescriptionRe-Order QtyItem Tag#Total Qty Received
21-Sep-201020BBBB1012349
31-Sep-201020CCCC1012360
41-Sep-201020DDDD2045610
51-Sep-201020EEEE2545620
61-Sep-201020EEEE121234
Sheet1 (3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L15Expression=AND(L2<>"",COUNTIF(L:L,L2)>1,(SUMIFS(R:R,L:L,L2)<SUMIFS(K:K,L:L,L2)-VALUE(K2)))textNO
 
Upvote 0
NabeelAhmed.xlsx
BCHKLR
1DatePR#Item DescriptionRe-Order QtyItem Tag#Total Qty Received
21-Sep-201020BBBB1012349
31-Sep-201020CCCC1012360
41-Sep-201020DDDD2045610
51-Sep-201020EEEE2545620
61-Sep-201020EEEE121234
Sheet1 (3)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
L2:L15Expression=AND(L2<>"",COUNTIF(L:L,L2)>1,(SUMIFS(R:R,L:L,L2)<SUMIFS(K:K,L:L,L2)-VALUE(K2)))textNO

Dear Thank you So much for your support.. that perfect ... :)
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,090
Members
449,065
Latest member
Danger_SF

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