Re: Data Validation with repeaters excluded from the source list

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hari (excel_hari_at_hotmail.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 21:57:05 +0530

Hi Frank,

I thought of a different formula in my case which is working fine.

I have eliminated the helper column.

As said before I have the source data in Column B starting from row no 3 and
Im creating a dropdown list in Column AR starting from rowno3.

For AR 3 I put formula as --> =IF(B3<>0,B3,"")

For all rows starting from row 4 in column AR I put the formula
as -->=IF(COUNTIF($AR$3:AR3,B4)=0,IF(B4="","",B4),"")

Though my problem is solved I have a request from ur side.

I would like to LEARN your logic especially why u have done it that way and
more importantly how your formula achieves what u wanted to do. Like Im not
able to understand how one can have a formula like -->
COUNTIF(B$1:B1,$A$1:$A$100) where both range and critirea's are arrays. I
did not know that criteria could be an array. Also even criteria could be an
array why is it that here range is a smaller array as compared to criteria.
( Logic wise isnt range supposed to be a SUPERSET of criteria).

Also u have used the above Countif along with match. But for the Match u
specify the lookup value as Zero. Why is that zero.

Please shed some light so that I may better understand how u people
manipulate formulas to achieve what u want to do.

Regards,
Hari
India

"Hari" <excel_hari@hotmail.com> wrote in message
news:eQixCwzbEHA.3420@TK2MSFTNGP12.phx.gbl...
> Hi Frank,
>
> Im having some problems with this formula....
>
> My initial repeater list is in column B starting from row no 3.
>
> I created a helper list in column AQ starting from row no 3.
>
> So in the array formula u have given I changed $A$1 to $B43, $A$100 to
> $B$100, B$1 to AQ$3 and B1 to AQ1.
>
> Then i copied this formula till AQ 100.
>
> But the result im getting is a blank. I used excel's evaluate formula
> option (I have 2002) and saw that where the countif is being evaluated
> (inside Match function) the formula evaluates to N#A for all cells. I dont
> understand the logic behind having look up value in Match as Zero. May be
> thats why the problem is coming (Im just speculating, pls correct me if my
> understanding is woefully inadequate).
>
> Also please note my original repeater list also have some blanks in some
of
> the rows.
>
> I have pasted my raw (Dummy data ) extending from B3 to B25 below.
>
> Column B
>
> 123
> 123
> 123
> 123
> 123
> 123
> 123
> 123
> 123
> 345
> 345
> 345
> 345
>
>
> 345
> 345
> 123
> 123
> 345
> 345
> 345
> 345
>
>
>
> Please guide me.
>
> Regards,
> Hari
> India
> "Frank Kabel" <frank.kabel@freenet.de> wrote in message
> news:eRnpMhdbEHA.3996@TK2MSFTNGP12.phx.gbl...
> > Hi
> > one way: Use a helper column. e.g. column B and enter the following
> > formulas
> > B1:
> > =A1
> >
> > B2: Enter the array formula (entered with CTRL+SHIFT+ENTER:
> > =IF(ISERROR(INDEX($A$1:$A$100,MATCH(0,COUNTIF(B$1:B1,$A$1:$A$100),0))),
> > "",INDEX($A$1:$A$100,MATCH(0,COUNTIF(B$1:B1,$A$1:$A$100),0)))
> > and copy B2 down as far as needed.
> > Use this column as your column for the data validation list
> >
> > --
> > Regards
> > Frank Kabel
> > Frankfurt, Germany
> >
> > "Hari" <excel_hari@hotmail.com> schrieb im Newsbeitrag
> > news:uZDgmOcbEHA.1000@TK2MSFTNGP12.phx.gbl...
> > > Hi,
> > >
> > > In sheet 1 I have data in Column A starting from row No 2 like :-
> > >
> > > Aw
> > > Er
> > > Aw
> > > Rt
> > > Yu
> > > Ui
> > > Rt
> > > Aw
> > > Ui
> > >
> > > Now, the above list which is in column A will have its rows
> > expanding. That
> > > is today the data may be till Row 300 and tomorrow it will/might
> > > increase to 500 and after some time it may go to even 2000 or so.Now
> > many of
> > > the records in column 1 are repeating. Like U may notice "Aw", "Rt"
> > etc more
> > > than once.
> > >
> > > The "solution" I desire is in Sheet 2 Column C starting from Row 2, I
> > want
> > > to create a dropdown (validation list) based on the data in column A
> > of
> > > sheet 1
> > > But since there are many repeaters in Column A of sheet 1 I want that
> > the
> > > list in sheet 2 to have only one instance. That is "Aw", "Rt" etc
> > should
> > > figure only once in the dropdown.
> > >
> > > Please guide me.
> > >
> > > ( I went thru Debra Dalgleish's site on Validation ... but couldnt
> > find what
> > > I was looking for --I might have missed something .)
> > >
> > > Regards,
> > > Hari
> > > India
> > >
> > >
> >
>
>



Relevant Pages

  • Re: Drop down lists and vlookup? or Match?
    ... exactly the same way except that the criteria in this case is different. ... This will return an array of TRUE's or FALSE's. ... Sheet2 has the employee list. ... Does each crew have the same number of people assigned? ...
    (microsoft.public.excel.worksheet.functions)
  • Re: AdvancedFilter syntax
    ... I think you'll have to use a real range for that criteria. ... And I'm not sure that this is quicker than reading the range into an array and ... Dim TempWks As Worksheet ... I'm underutilizing AdvancedFilter, and am hoping for a few pointers on how to ...
    (microsoft.public.excel.programming)
  • Re: INDEX function array causes problem when attempting to use LARGE function to sort positive and n
    ... (in the event of ties or multiple ties) ... Copy to G2, fill down to cover the max expected extent of source data, ... function with positive and negative numbers "WITHOUT" using an array ... TRUE values in the INDEX array that are negative or zero ...
    (microsoft.public.excel.worksheet.functions)
  • Text in Column A, numbers in Column B, and text criteria in C1
    ... I have a similar spreadsheet where I am trying to use the array formula below; however in using this array and entering with CSE I am receiving a "#num!" ... With text in Column A and numbers in Column B, and text criteria in C1,Try ... I am trying to craft a formula which will extract the largest nth ...
    (microsoft.public.excel.worksheet.functions)
  • RE: Using Match function with duplicate values in an array
    ... set up a helper column ... > function to find the row reference in the array. ...
    (microsoft.public.excel.worksheet.functions)