Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default Prevent duplication across sheets

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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Prevent duplication across sheets

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.

"Glenn" wrote:

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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 122
Default Prevent duplication across sheets

That's clever, I like that. Have to remember that one. But, you're right,
it probably won't speed things up. Thanks anyway!

"Toppers" wrote:

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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent certain tabs/sheets from refreshing [email protected] Excel Discussion (Misc queries) 1 February 8th 07 02:11 PM
prevent user to delete specific sheets alekm Excel Discussion (Misc queries) 1 January 30th 07 03:47 PM
How-to Prevent Value Duplication StrapJr Excel Discussion (Misc queries) 1 November 28th 06 03:57 PM
How do I prevent duplication of numbers in a column waldo Excel Discussion (Misc queries) 2 March 5th 06 06:36 PM
prevent duplication Ben Blair Excel Discussion (Misc queries) 1 May 21st 05 03:59 AM


All times are GMT +1. The time now is 04:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"