PC Review


Reply
Thread Tools Rate Thread

Compare 400 cells to one

 
 
Bill Lyttle
Guest
Posts: n/a
 
      29th Jun 2008

I'm using a drop down box that contains 1000 different choices. I'
using the same drop down box in 400 places on 8 sheets in a workbook.
want to make sure the same value is not used more than once. I've trie
usine the =if(or(F9=F11,F9=F13,F9=F15,F9=F17,F9=F19......)"Used"
"OK"). But it will not let me use more than 32 values. How do i compar
the 400 different cells to one to make sure the value is not picked mor
than once


--
Bill Lyttle
 
Reply With Quote
 
 
 
 
Teethless mama
Guest
Posts: n/a
 
      30th Jun 2008
=IF(SUMPRODUCT((F11:F100=F9)*(MOD(ROW(F11:F100),2)=1))>0,"Used","OK")


"Bill Lyttle" wrote:

>
> I'm using a drop down box that contains 1000 different choices. I'm
> using the same drop down box in 400 places on 8 sheets in a workbook. I
> want to make sure the same value is not used more than once. I've tried
> usine the =if(or(F9=F11,F9=F13,F9=F15,F9=F17,F9=F19......)"Used",
> "OK"). But it will not let me use more than 32 values. How do i compare
> the 400 different cells to one to make sure the value is not picked more
> than once?
>
>
>
>
> --
> Bill Lyttle
>

 
Reply With Quote
 
JLatham
Guest
Posts: n/a
 
      30th Jun 2008
When you say that "I want to make sure the same value is not used more than
once." Do you mean more than once on a specific sheet, or not more than once
on any of the 8 sheets?

Toothless Mama has shown a possible way to test in one column on one sheet,
you could do that for all sheets, coming up with individual results and then
combining the results if you need to test for any multiple usage on multiple
sheets.

"Bill Lyttle" wrote:

>
> I'm using a drop down box that contains 1000 different choices. I'm
> using the same drop down box in 400 places on 8 sheets in a workbook. I
> want to make sure the same value is not used more than once. I've tried
> usine the =if(or(F9=F11,F9=F13,F9=F15,F9=F17,F9=F19......)"Used",
> "OK"). But it will not let me use more than 32 values. How do i compare
> the 400 different cells to one to make sure the value is not picked more
> than once?
>
>
>
>
> --
> Bill Lyttle
>

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      30th Jun 2008
One way to set it up for the DV control sought
Illustrated in this sample:
http://www.freefilehosting.net/download/3j2mb
Dynamic DV over several shts for unique selections.xls

In a sheet: DV,
Assume the DV items are listed in A2 down
Enter the source sheetnames in B1 across, eg: Sheet2, Sheet3
Assume the DVs are to be created in A2:A4 in each of the source sheets
Put in B2, copy across/filled down:
=COUNTIF(INDIRECT("'"&B$1&"'!A2:A4"),$A2)

Place in say, E2: =IF(SUM(B2:C2)>0,"",ROW())
Leave E1 blank
In F2:
=IF(ROWS($1:1)>COUNT(E:E),"",INDEX(A:A,SMALL(E:E,ROWS($1:1))))
Copy E2:F2 down. Col F will return the base list to be used for the dynamic
DV source

Create a dynamic defined range, say: MyR
to refer to:
=OFFSET(DV!$F$2,,,SUMPRODUCT(--(DV!$F$2:$F$6<>"")))

Now you can create the DVs using MyR as source in Sheet2's & Sheet3's A2:A4,
and you would have the exact control that you seek. Any DV items once
selected, will no longer appear/be availed for selection in the remaining
(unselected) DV cells in any of the source sheets. Test it out and see for
yourself. Extend to suit.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Bill Lyttle" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I'm using a drop down box that contains 1000 different choices. I'm
> using the same drop down box in 400 places on 8 sheets in a workbook. I
> want to make sure the same value is not used more than once. I've tried
> usine the =if(or(F9=F11,F9=F13,F9=F15,F9=F17,F9=F19......)"Used",
> "OK"). But it will not let me use more than 32 values. How do i compare
> the 400 different cells to one to make sure the value is not picked more
> than once?
> --
> Bill Lyttle



 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      1st Jul 2008
Being a first time poster, it's important to start off right. This is a
discussion group, not a post-n-scarper. Do take the time to respond
individually to each response that you've received.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compare 1 cell to column of cells returning adjacent cells info? Mr. Fine Microsoft Excel Worksheet Functions 1 15th Apr 2010 07:36 PM
Compare 4 cells John Microsoft Access 1 10th Jul 2008 02:09 PM
How do I compare cells and if FALSE compare to next cell in EXCEL =?Utf-8?B?Q2luZGll?= Microsoft Excel Worksheet Functions 0 24th Mar 2006 05:29 PM
Compare two cells from reference cells =?Utf-8?B?TWlrZSBL?= Microsoft Excel Worksheet Functions 2 26th Nov 2005 02:07 PM
Compare 2 cells in 2 worksheets, rewrite one of the cells dbomb Microsoft Excel Programming 1 28th Sep 2004 09:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:01 AM.