+ Reply to Thread
Results 1 to 4 of 4

Data validation and empty cells

  1. #1
    Kris
    Guest

    Data validation and empty cells

    range("d1").Validation.add formula1:=
    "=$A$1:$A$7",Type:=xlValidateList,operator:=xlBetween


    How to avoid empty entries in drop down box if some of cell from A1:A7
    are empty?

    Thanks

  2. #2
    Bob Phillips
    Guest

    Re: Data validation and empty cells

    Sort A1:A7 so that the empties are at the bottom and use

    =OFFSET($A$1,,,COUNT($A$1:$A$7),1)

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Kris" <[email protected]> wrote in message
    news:[email protected]...
    > range("d1").Validation.add formula1:=
    > "=$A$1:$A$7",Type:=xlValidateList,operator:=xlBetween
    >
    >
    > How to avoid empty entries in drop down box if some of cell from A1:A7
    > are empty?
    >
    > Thanks




  3. #3
    Kris
    Guest

    Re: Data validation and empty cells

    Bob Phillips wrote:
    > Sort A1:A7 so that the empties are at the bottom and use
    >
    > =OFFSET($A$1,,,COUNT($A$1:$A$7),1)
    >



    Perfect, with one correction COUNTA

    Thanks



  4. #4
    Bob Phillips
    Guest

    Re: Data validation and empty cells

    I was assuming they were all numbers <vbg>

    Good spot!

    Bob

    "Kris" <[email protected]> wrote in message
    news:[email protected]...
    > Bob Phillips wrote:
    > > Sort A1:A7 so that the empties are at the bottom and use
    > >
    > > =OFFSET($A$1,,,COUNT($A$1:$A$7),1)
    > >

    >
    >
    > Perfect, with one correction COUNTA
    >
    > Thanks
    >
    >




+ 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