+ Reply to Thread
Results 1 to 16 of 16

Data Validation dependant and unique

  1. #1
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    If you don't want to reuse items from the existing list, why do you want
    to create a dropdown of previously entered items?

    Or is there another list in your workbook that contains the ColAStart
    and AllColA ranges?

    Sara Hopkins wrote:
    > Hi all,
    > I need to create a data validation drop down that checks for uniqueness over
    > the list it's part of and dependant on content of another list... here's what
    > I mean:
    >
    > ColA ColB
    > ABC 123
    > ABC 234
    > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > DFE <validation allows entry of 123 because DFE doesn't have it>
    >
    > Now, I can produce a drop down list dependant on another column thanks to
    > http://www.contextures.com/xlDataVal13.html :
    >
    > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >
    > I can also check for uniqueness formula with this formula:
    >
    > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >
    > Both formulas are working well in other places. My thought is that I can
    > combine them with the Offset formula as the VLookup formula's lookup range,
    > so:
    >
    > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >
    > However, nothing happens... no error, no list...?
    >
    > If I copy that formula out to another blank sheet to break it down and test
    > it I get a circular reference error.
    >
    > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > be created. Can anyone help?
    >
    > TIA, Sara



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  2. #2
    Sara Hopkins
    Guest

    Re: Data Validation dependant and unique

    Thanks Debra, I don't actually want a drop down at all, I want the data
    validation to stop a user from entering duplicate ColB values over ColA
    entries, so unique over ColA values but not unique over all. ColA is itself
    a data validation lookup to another spreadsheet in the workbook.

    The purpose of the Workbook is data collection of Customers (ColA) and their
    ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    collection.

    "Debra Dalgleish" wrote:

    > If you don't want to reuse items from the existing list, why do you want
    > to create a dropdown of previously entered items?
    >
    > Or is there another list in your workbook that contains the ColAStart
    > and AllColA ranges?
    >
    > Sara Hopkins wrote:
    > > Hi all,
    > > I need to create a data validation drop down that checks for uniqueness over
    > > the list it's part of and dependant on content of another list... here's what
    > > I mean:
    > >
    > > ColA ColB
    > > ABC 123
    > > ABC 234
    > > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > > DFE <validation allows entry of 123 because DFE doesn't have it>
    > >
    > > Now, I can produce a drop down list dependant on another column thanks to
    > > http://www.contextures.com/xlDataVal13.html :
    > >
    > > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    > >
    > > I can also check for uniqueness formula with this formula:
    > >
    > > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    > >
    > > Both formulas are working well in other places. My thought is that I can
    > > combine them with the Offset formula as the VLookup formula's lookup range,
    > > so:
    > >
    > > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    > >
    > > However, nothing happens... no error, no list...?
    > >
    > > If I copy that formula out to another blank sheet to break it down and test
    > > it I get a circular reference error.
    > >
    > > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > > be created. Can anyone help?
    > >
    > > TIA, Sara

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  3. #3
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    To check for unique combinations, you could use a SumProduct formula, e.g.:

    =SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200=B2))<2

    Sara Hopkins wrote:
    > Thanks Debra, I don't actually want a drop down at all, I want the data
    > validation to stop a user from entering duplicate ColB values over ColA
    > entries, so unique over ColA values but not unique over all. ColA is itself
    > a data validation lookup to another spreadsheet in the workbook.
    >
    > The purpose of the Workbook is data collection of Customers (ColA) and their
    > ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    > collection.
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>If you don't want to reuse items from the existing list, why do you want
    >>to create a dropdown of previously entered items?
    >>
    >>Or is there another list in your workbook that contains the ColAStart
    >>and AllColA ranges?
    >>
    >>Sara Hopkins wrote:
    >>
    >>>Hi all,
    >>>I need to create a data validation drop down that checks for uniqueness over
    >>>the list it's part of and dependant on content of another list... here's what
    >>>I mean:
    >>>
    >>>ColA ColB
    >>>ABC 123
    >>>ABC 234
    >>>ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    >>>DFE <validation allows entry of 123 because DFE doesn't have it>
    >>>
    >>>Now, I can produce a drop down list dependant on another column thanks to
    >>>http://www.contextures.com/xlDataVal13.html :
    >>>
    >>>OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >>>
    >>>I can also check for uniqueness formula with this formula:
    >>>
    >>>ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >>>
    >>>Both formulas are working well in other places. My thought is that I can
    >>>combine them with the Offset formula as the VLookup formula's lookup range,
    >>>so:
    >>>
    >>>ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >>>
    >>>However, nothing happens... no error, no list...?
    >>>
    >>>If I copy that formula out to another blank sheet to break it down and test
    >>>it I get a circular reference error.
    >>>
    >>>I can't have the ColB entries elsewhere as this is where the ColB list is to
    >>>be created. Can anyone help?
    >>>
    >>>TIA, Sara

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  4. #4
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    If you don't want to reuse items from the existing list, why do you want
    to create a dropdown of previously entered items?

    Or is there another list in your workbook that contains the ColAStart
    and AllColA ranges?

    Sara Hopkins wrote:
    > Hi all,
    > I need to create a data validation drop down that checks for uniqueness over
    > the list it's part of and dependant on content of another list... here's what
    > I mean:
    >
    > ColA ColB
    > ABC 123
    > ABC 234
    > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > DFE <validation allows entry of 123 because DFE doesn't have it>
    >
    > Now, I can produce a drop down list dependant on another column thanks to
    > http://www.contextures.com/xlDataVal13.html :
    >
    > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >
    > I can also check for uniqueness formula with this formula:
    >
    > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >
    > Both formulas are working well in other places. My thought is that I can
    > combine them with the Offset formula as the VLookup formula's lookup range,
    > so:
    >
    > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >
    > However, nothing happens... no error, no list...?
    >
    > If I copy that formula out to another blank sheet to break it down and test
    > it I get a circular reference error.
    >
    > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > be created. Can anyone help?
    >
    > TIA, Sara



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  5. #5
    Sara Hopkins
    Guest

    Re: Data Validation dependant and unique

    Thanks Debra, I don't actually want a drop down at all, I want the data
    validation to stop a user from entering duplicate ColB values over ColA
    entries, so unique over ColA values but not unique over all. ColA is itself
    a data validation lookup to another spreadsheet in the workbook.

    The purpose of the Workbook is data collection of Customers (ColA) and their
    ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    collection.

    "Debra Dalgleish" wrote:

    > If you don't want to reuse items from the existing list, why do you want
    > to create a dropdown of previously entered items?
    >
    > Or is there another list in your workbook that contains the ColAStart
    > and AllColA ranges?
    >
    > Sara Hopkins wrote:
    > > Hi all,
    > > I need to create a data validation drop down that checks for uniqueness over
    > > the list it's part of and dependant on content of another list... here's what
    > > I mean:
    > >
    > > ColA ColB
    > > ABC 123
    > > ABC 234
    > > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > > DFE <validation allows entry of 123 because DFE doesn't have it>
    > >
    > > Now, I can produce a drop down list dependant on another column thanks to
    > > http://www.contextures.com/xlDataVal13.html :
    > >
    > > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    > >
    > > I can also check for uniqueness formula with this formula:
    > >
    > > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    > >
    > > Both formulas are working well in other places. My thought is that I can
    > > combine them with the Offset formula as the VLookup formula's lookup range,
    > > so:
    > >
    > > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    > >
    > > However, nothing happens... no error, no list...?
    > >
    > > If I copy that formula out to another blank sheet to break it down and test
    > > it I get a circular reference error.
    > >
    > > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > > be created. Can anyone help?
    > >
    > > TIA, Sara

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  6. #6
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    To check for unique combinations, you could use a SumProduct formula, e.g.:

    =SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200=B2))<2

    Sara Hopkins wrote:
    > Thanks Debra, I don't actually want a drop down at all, I want the data
    > validation to stop a user from entering duplicate ColB values over ColA
    > entries, so unique over ColA values but not unique over all. ColA is itself
    > a data validation lookup to another spreadsheet in the workbook.
    >
    > The purpose of the Workbook is data collection of Customers (ColA) and their
    > ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    > collection.
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>If you don't want to reuse items from the existing list, why do you want
    >>to create a dropdown of previously entered items?
    >>
    >>Or is there another list in your workbook that contains the ColAStart
    >>and AllColA ranges?
    >>
    >>Sara Hopkins wrote:
    >>
    >>>Hi all,
    >>>I need to create a data validation drop down that checks for uniqueness over
    >>>the list it's part of and dependant on content of another list... here's what
    >>>I mean:
    >>>
    >>>ColA ColB
    >>>ABC 123
    >>>ABC 234
    >>>ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    >>>DFE <validation allows entry of 123 because DFE doesn't have it>
    >>>
    >>>Now, I can produce a drop down list dependant on another column thanks to
    >>>http://www.contextures.com/xlDataVal13.html :
    >>>
    >>>OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >>>
    >>>I can also check for uniqueness formula with this formula:
    >>>
    >>>ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >>>
    >>>Both formulas are working well in other places. My thought is that I can
    >>>combine them with the Offset formula as the VLookup formula's lookup range,
    >>>so:
    >>>
    >>>ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >>>
    >>>However, nothing happens... no error, no list...?
    >>>
    >>>If I copy that formula out to another blank sheet to break it down and test
    >>>it I get a circular reference error.
    >>>
    >>>I can't have the ColB entries elsewhere as this is where the ColB list is to
    >>>be created. Can anyone help?
    >>>
    >>>TIA, Sara

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  7. #7
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    If you don't want to reuse items from the existing list, why do you want
    to create a dropdown of previously entered items?

    Or is there another list in your workbook that contains the ColAStart
    and AllColA ranges?

    Sara Hopkins wrote:
    > Hi all,
    > I need to create a data validation drop down that checks for uniqueness over
    > the list it's part of and dependant on content of another list... here's what
    > I mean:
    >
    > ColA ColB
    > ABC 123
    > ABC 234
    > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > DFE <validation allows entry of 123 because DFE doesn't have it>
    >
    > Now, I can produce a drop down list dependant on another column thanks to
    > http://www.contextures.com/xlDataVal13.html :
    >
    > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >
    > I can also check for uniqueness formula with this formula:
    >
    > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >
    > Both formulas are working well in other places. My thought is that I can
    > combine them with the Offset formula as the VLookup formula's lookup range,
    > so:
    >
    > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >
    > However, nothing happens... no error, no list...?
    >
    > If I copy that formula out to another blank sheet to break it down and test
    > it I get a circular reference error.
    >
    > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > be created. Can anyone help?
    >
    > TIA, Sara



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  8. #8
    Sara Hopkins
    Guest

    Re: Data Validation dependant and unique

    Thanks Debra, I don't actually want a drop down at all, I want the data
    validation to stop a user from entering duplicate ColB values over ColA
    entries, so unique over ColA values but not unique over all. ColA is itself
    a data validation lookup to another spreadsheet in the workbook.

    The purpose of the Workbook is data collection of Customers (ColA) and their
    ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    collection.

    "Debra Dalgleish" wrote:

    > If you don't want to reuse items from the existing list, why do you want
    > to create a dropdown of previously entered items?
    >
    > Or is there another list in your workbook that contains the ColAStart
    > and AllColA ranges?
    >
    > Sara Hopkins wrote:
    > > Hi all,
    > > I need to create a data validation drop down that checks for uniqueness over
    > > the list it's part of and dependant on content of another list... here's what
    > > I mean:
    > >
    > > ColA ColB
    > > ABC 123
    > > ABC 234
    > > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > > DFE <validation allows entry of 123 because DFE doesn't have it>
    > >
    > > Now, I can produce a drop down list dependant on another column thanks to
    > > http://www.contextures.com/xlDataVal13.html :
    > >
    > > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    > >
    > > I can also check for uniqueness formula with this formula:
    > >
    > > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    > >
    > > Both formulas are working well in other places. My thought is that I can
    > > combine them with the Offset formula as the VLookup formula's lookup range,
    > > so:
    > >
    > > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    > >
    > > However, nothing happens... no error, no list...?
    > >
    > > If I copy that formula out to another blank sheet to break it down and test
    > > it I get a circular reference error.
    > >
    > > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > > be created. Can anyone help?
    > >
    > > TIA, Sara

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  9. #9
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    To check for unique combinations, you could use a SumProduct formula, e.g.:

    =SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200=B2))<2

    Sara Hopkins wrote:
    > Thanks Debra, I don't actually want a drop down at all, I want the data
    > validation to stop a user from entering duplicate ColB values over ColA
    > entries, so unique over ColA values but not unique over all. ColA is itself
    > a data validation lookup to another spreadsheet in the workbook.
    >
    > The purpose of the Workbook is data collection of Customers (ColA) and their
    > ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    > collection.
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>If you don't want to reuse items from the existing list, why do you want
    >>to create a dropdown of previously entered items?
    >>
    >>Or is there another list in your workbook that contains the ColAStart
    >>and AllColA ranges?
    >>
    >>Sara Hopkins wrote:
    >>
    >>>Hi all,
    >>>I need to create a data validation drop down that checks for uniqueness over
    >>>the list it's part of and dependant on content of another list... here's what
    >>>I mean:
    >>>
    >>>ColA ColB
    >>>ABC 123
    >>>ABC 234
    >>>ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    >>>DFE <validation allows entry of 123 because DFE doesn't have it>
    >>>
    >>>Now, I can produce a drop down list dependant on another column thanks to
    >>>http://www.contextures.com/xlDataVal13.html :
    >>>
    >>>OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >>>
    >>>I can also check for uniqueness formula with this formula:
    >>>
    >>>ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >>>
    >>>Both formulas are working well in other places. My thought is that I can
    >>>combine them with the Offset formula as the VLookup formula's lookup range,
    >>>so:
    >>>
    >>>ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >>>
    >>>However, nothing happens... no error, no list...?
    >>>
    >>>If I copy that formula out to another blank sheet to break it down and test
    >>>it I get a circular reference error.
    >>>
    >>>I can't have the ColB entries elsewhere as this is where the ColB list is to
    >>>be created. Can anyone help?
    >>>
    >>>TIA, Sara

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  10. #10
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    If you don't want to reuse items from the existing list, why do you want
    to create a dropdown of previously entered items?

    Or is there another list in your workbook that contains the ColAStart
    and AllColA ranges?

    Sara Hopkins wrote:
    > Hi all,
    > I need to create a data validation drop down that checks for uniqueness over
    > the list it's part of and dependant on content of another list... here's what
    > I mean:
    >
    > ColA ColB
    > ABC 123
    > ABC 234
    > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > DFE <validation allows entry of 123 because DFE doesn't have it>
    >
    > Now, I can produce a drop down list dependant on another column thanks to
    > http://www.contextures.com/xlDataVal13.html :
    >
    > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >
    > I can also check for uniqueness formula with this formula:
    >
    > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >
    > Both formulas are working well in other places. My thought is that I can
    > combine them with the Offset formula as the VLookup formula's lookup range,
    > so:
    >
    > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >
    > However, nothing happens... no error, no list...?
    >
    > If I copy that formula out to another blank sheet to break it down and test
    > it I get a circular reference error.
    >
    > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > be created. Can anyone help?
    >
    > TIA, Sara



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  11. #11
    Sara Hopkins
    Guest

    Re: Data Validation dependant and unique

    Thanks Debra, I don't actually want a drop down at all, I want the data
    validation to stop a user from entering duplicate ColB values over ColA
    entries, so unique over ColA values but not unique over all. ColA is itself
    a data validation lookup to another spreadsheet in the workbook.

    The purpose of the Workbook is data collection of Customers (ColA) and their
    ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    collection.

    "Debra Dalgleish" wrote:

    > If you don't want to reuse items from the existing list, why do you want
    > to create a dropdown of previously entered items?
    >
    > Or is there another list in your workbook that contains the ColAStart
    > and AllColA ranges?
    >
    > Sara Hopkins wrote:
    > > Hi all,
    > > I need to create a data validation drop down that checks for uniqueness over
    > > the list it's part of and dependant on content of another list... here's what
    > > I mean:
    > >
    > > ColA ColB
    > > ABC 123
    > > ABC 234
    > > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > > DFE <validation allows entry of 123 because DFE doesn't have it>
    > >
    > > Now, I can produce a drop down list dependant on another column thanks to
    > > http://www.contextures.com/xlDataVal13.html :
    > >
    > > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    > >
    > > I can also check for uniqueness formula with this formula:
    > >
    > > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    > >
    > > Both formulas are working well in other places. My thought is that I can
    > > combine them with the Offset formula as the VLookup formula's lookup range,
    > > so:
    > >
    > > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    > >
    > > However, nothing happens... no error, no list...?
    > >
    > > If I copy that formula out to another blank sheet to break it down and test
    > > it I get a circular reference error.
    > >
    > > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > > be created. Can anyone help?
    > >
    > > TIA, Sara

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  12. #12
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    To check for unique combinations, you could use a SumProduct formula, e.g.:

    =SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200=B2))<2

    Sara Hopkins wrote:
    > Thanks Debra, I don't actually want a drop down at all, I want the data
    > validation to stop a user from entering duplicate ColB values over ColA
    > entries, so unique over ColA values but not unique over all. ColA is itself
    > a data validation lookup to another spreadsheet in the workbook.
    >
    > The purpose of the Workbook is data collection of Customers (ColA) and their
    > ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    > collection.
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>If you don't want to reuse items from the existing list, why do you want
    >>to create a dropdown of previously entered items?
    >>
    >>Or is there another list in your workbook that contains the ColAStart
    >>and AllColA ranges?
    >>
    >>Sara Hopkins wrote:
    >>
    >>>Hi all,
    >>>I need to create a data validation drop down that checks for uniqueness over
    >>>the list it's part of and dependant on content of another list... here's what
    >>>I mean:
    >>>
    >>>ColA ColB
    >>>ABC 123
    >>>ABC 234
    >>>ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    >>>DFE <validation allows entry of 123 because DFE doesn't have it>
    >>>
    >>>Now, I can produce a drop down list dependant on another column thanks to
    >>>http://www.contextures.com/xlDataVal13.html :
    >>>
    >>>OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >>>
    >>>I can also check for uniqueness formula with this formula:
    >>>
    >>>ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >>>
    >>>Both formulas are working well in other places. My thought is that I can
    >>>combine them with the Offset formula as the VLookup formula's lookup range,
    >>>so:
    >>>
    >>>ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >>>
    >>>However, nothing happens... no error, no list...?
    >>>
    >>>If I copy that formula out to another blank sheet to break it down and test
    >>>it I get a circular reference error.
    >>>
    >>>I can't have the ColB entries elsewhere as this is where the ColB list is to
    >>>be created. Can anyone help?
    >>>
    >>>TIA, Sara

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  13. #13
    Sara Hopkins
    Guest

    Data Validation dependant and unique

    Hi all,
    I need to create a data validation drop down that checks for uniqueness over
    the list it's part of and dependant on content of another list... here's what
    I mean:

    ColA ColB
    ABC 123
    ABC 234
    ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    DFE <validation allows entry of 123 because DFE doesn't have it>

    Now, I can produce a drop down list dependant on another column thanks to
    http://www.contextures.com/xlDataVal13.html :

    OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)

    I can also check for uniqueness formula with this formula:

    ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))

    Both formulas are working well in other places. My thought is that I can
    combine them with the Offset formula as the VLookup formula's lookup range,
    so:

    ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))

    However, nothing happens... no error, no list...?

    If I copy that formula out to another blank sheet to break it down and test
    it I get a circular reference error.

    I can't have the ColB entries elsewhere as this is where the ColB list is to
    be created. Can anyone help?

    TIA, Sara

  14. #14
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    If you don't want to reuse items from the existing list, why do you want
    to create a dropdown of previously entered items?

    Or is there another list in your workbook that contains the ColAStart
    and AllColA ranges?

    Sara Hopkins wrote:
    > Hi all,
    > I need to create a data validation drop down that checks for uniqueness over
    > the list it's part of and dependant on content of another list... here's what
    > I mean:
    >
    > ColA ColB
    > ABC 123
    > ABC 234
    > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > DFE <validation allows entry of 123 because DFE doesn't have it>
    >
    > Now, I can produce a drop down list dependant on another column thanks to
    > http://www.contextures.com/xlDataVal13.html :
    >
    > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >
    > I can also check for uniqueness formula with this formula:
    >
    > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >
    > Both formulas are working well in other places. My thought is that I can
    > combine them with the Offset formula as the VLookup formula's lookup range,
    > so:
    >
    > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >
    > However, nothing happens... no error, no list...?
    >
    > If I copy that formula out to another blank sheet to break it down and test
    > it I get a circular reference error.
    >
    > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > be created. Can anyone help?
    >
    > TIA, Sara



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  15. #15
    Sara Hopkins
    Guest

    Re: Data Validation dependant and unique

    Thanks Debra, I don't actually want a drop down at all, I want the data
    validation to stop a user from entering duplicate ColB values over ColA
    entries, so unique over ColA values but not unique over all. ColA is itself
    a data validation lookup to another spreadsheet in the workbook.

    The purpose of the Workbook is data collection of Customers (ColA) and their
    ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    collection.

    "Debra Dalgleish" wrote:

    > If you don't want to reuse items from the existing list, why do you want
    > to create a dropdown of previously entered items?
    >
    > Or is there another list in your workbook that contains the ColAStart
    > and AllColA ranges?
    >
    > Sara Hopkins wrote:
    > > Hi all,
    > > I need to create a data validation drop down that checks for uniqueness over
    > > the list it's part of and dependant on content of another list... here's what
    > > I mean:
    > >
    > > ColA ColB
    > > ABC 123
    > > ABC 234
    > > ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    > > DFE <validation allows entry of 123 because DFE doesn't have it>
    > >
    > > Now, I can produce a drop down list dependant on another column thanks to
    > > http://www.contextures.com/xlDataVal13.html :
    > >
    > > OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    > >
    > > I can also check for uniqueness formula with this formula:
    > >
    > > ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    > >
    > > Both formulas are working well in other places. My thought is that I can
    > > combine them with the Offset formula as the VLookup formula's lookup range,
    > > so:
    > >
    > > ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    > >
    > > However, nothing happens... no error, no list...?
    > >
    > > If I copy that formula out to another blank sheet to break it down and test
    > > it I get a circular reference error.
    > >
    > > I can't have the ColB entries elsewhere as this is where the ColB list is to
    > > be created. Can anyone help?
    > >
    > > TIA, Sara

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  16. #16
    Debra Dalgleish
    Guest

    Re: Data Validation dependant and unique

    To check for unique combinations, you could use a SumProduct formula, e.g.:

    =SUMPRODUCT(--($A$2:$A$200=A2),--($B$2:$B$200=B2))<2

    Sara Hopkins wrote:
    > Thanks Debra, I don't actually want a drop down at all, I want the data
    > validation to stop a user from entering duplicate ColB values over ColA
    > entries, so unique over ColA values but not unique over all. ColA is itself
    > a data validation lookup to another spreadsheet in the workbook.
    >
    > The purpose of the Workbook is data collection of Customers (ColA) and their
    > ShipTos (ColB) the particular spreadsheet this data comes from is the ShipTo
    > collection.
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>If you don't want to reuse items from the existing list, why do you want
    >>to create a dropdown of previously entered items?
    >>
    >>Or is there another list in your workbook that contains the ColAStart
    >>and AllColA ranges?
    >>
    >>Sara Hopkins wrote:
    >>
    >>>Hi all,
    >>>I need to create a data validation drop down that checks for uniqueness over
    >>>the list it's part of and dependant on content of another list... here's what
    >>>I mean:
    >>>
    >>>ColA ColB
    >>>ABC 123
    >>>ABC 234
    >>>ABC <validation checks that the entry belongs to ABC and is not 123 or 234>
    >>>DFE <validation allows entry of 123 because DFE doesn't have it>
    >>>
    >>>Now, I can produce a drop down list dependant on another column thanks to
    >>>http://www.contextures.com/xlDataVal13.html :
    >>>
    >>>OFFSET(ColAStart,MATCH(B3,AllColA,0)-1,1,COUNTIF(AllColA,B3),1)
    >>>
    >>>I can also check for uniqueness formula with this formula:
    >>>
    >>>ISNA(VLOOKUP(B3,B$2:B2,1,FALSE))
    >>>
    >>>Both formulas are working well in other places. My thought is that I can
    >>>combine them with the Offset formula as the VLookup formula's lookup range,
    >>>so:
    >>>
    >>>ISNA(VLOOKUP(B3,<that offset function>,1,FALSE))
    >>>
    >>>However, nothing happens... no error, no list...?
    >>>
    >>>If I copy that formula out to another blank sheet to break it down and test
    >>>it I get a circular reference error.
    >>>
    >>>I can't have the ColB entries elsewhere as this is where the ColB list is to
    >>>be created. Can anyone help?
    >>>
    >>>TIA, Sara

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1