+ Reply to Thread
Results 1 to 9 of 9

Validating numerical and not blank?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Validating numerical and not blank?

    I'm attempting to require a numerical entry in a cell using data validation. The function =AND(ISNUMBER(cell),NOT(ISBLANK(cell))) does not perform as intended. Unchecking "Ignore Blank" has no effect. The ISNUMBER function evaluates to TRUE on a blank cell. When used outside of data validation, NOT(ISBLANK(cell)) evaluates to FALSE on a blank cell, making me think the AND(...) function should be sufficient.

    Valid entries are any number, including 0.

    Can this be done without VB?

    George
    Last edited by geoB; 03-29-2009 at 06:17 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Validating numerical and not blank?

    Data validation includes Whole number and Decimal options.

    You can use conditional formatting to change blank cells to annoying red.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: Validating numerical and not blank?

    True, but they also require minimum and maximum values. My requirement is simply any numerical value. I guess I could specify Excel's max and min cell values, whatever they are.

    g

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Validating numerical and not blank?

    +/-9.9E+307 is not overly restrictive ...

  5. #5
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: Validating numerical and not blank?

    My students wouldn't know how to cube a googol, so I'll go with it.

    Thanks.

    g

  6. #6
    Registered User
    Join Date
    03-05-2009
    Location
    6500' in the Sierra Nevada
    MS-Off Ver
    Office 2007, 2010
    Posts
    74

    Re: Validating numerical and not blank?

    Spoke too soon. Decimal -9.9E+307<cell<+9.9E+307 still allows blank?????

    g

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Validating numerical and not blank?

    That's what I suggested the conditional formatting for.

+ 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