Preventing duplicate data entries across multiple sheets

blucky13

New Member
Joined
Feb 7, 2019
Messages
2
Hey all, I am new to vba coding and have been trying to figure this one out with no luck. I have an invoice registry workbook that we use to track expenses. I am trying to prevent duplicate invoices from being entered across different sheets. The top of my sheet has formulas that calculate the expenses entered. The expense entries start on row 209 of each sheet. There are 2 columns that I want to check when looking for a duplicate entry. One is a column that has a vendor name in it (column C) and the other is a column with an invoice number (column E). If just the invoice number is a duplicate I want it to warn the user that the invoice number exists in another location and tell them where and ask if this entry is correct. If both the invoice number and vendor name match then I want it to block them from entering it and it give them and error that this has already been entered. There are 12 sheets that need to be checked, they are (Feb, March, April, May, June, July, Aug, Sept, Oct, Nov, Dec, Jan) from row 209 to the bottom of the sheet. Is there anyone that can help with this?:confused:
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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