Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

Prevent duplication across sheets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Glenn - 12 Sep 2007 15:30 GMT
In Excel 2003, I have a user who would like to prevent duplicate product
numbers from being entered on any of multiple sheets in a file.  Since
conditional formatting, countif, and vlookup don't work across a 3-D range,
the brute force method is doing multiple lookups, countifs, etc, one for each
sheet, for each product, on each of the sheets.  However, these files are
already massive & slow (at least on our machines!), and I'd like a better
method.  I'm willing to do it with VBA if that might be the way to go.  Any
ideas out there?  Thanks!
Toppers - 12 Sep 2007 15:56 GMT
A 3-D lookup is possible BUT it will only add to your performance problems:

=IF(SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!A1:A100"),A5))<>1,"Duplicate
Product","")

"mySheets" is a named range containing a list of your sheets.

A5 is your product.

> In Excel 2003, I have a user who would like to prevent duplicate product
> numbers from being entered on any of multiple sheets in a file.  Since
[quoted text clipped - 4 lines]
> method.  I'm willing to do it with VBA if that might be the way to go.  Any
> ideas out there?  Thanks!
Glenn - 12 Sep 2007 18:40 GMT
That's clever, I like that.  Have to remember that one.  But, you're right,
it probably won't speed things up.  Thanks anyway!

> A 3-D lookup is possible BUT it will only add to your performance problems:
>
[quoted text clipped - 4 lines]
>
> A5 is your product.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.