+ Reply to Thread
Results 1 to 3 of 3

Setting Numerical Limits in a Cell

Hybrid View

  1. #1
    Registered User
    Join Date
    12-23-2008
    Location
    California
    Posts
    2

    Smile Setting Numerical Limits in a Cell

    How would I set a numerical limit in a cell? Example like only being able to enter in a number between 1 and 100, if someone did no enter a number fitting this criteria then the cell would not allow it or just be blank.
    Also when how would I figure out how to find out the average of 7 cells but only six of the cells have data.. In this instance I would only want the average of the 6 cells that had data not the original 7 cells. Any help would be greatly appreciated.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Setting Numerical Limits in a Cell

    First answer -
    Go to data validation on your data tab. Choose either decimal or whole number. Then enter your min and max acceptable entries

    Second answer -
    =SUM(D1:D9)/COUNTA(D1:D9)
    Something like that will sum the cells, then divide them by the # of cells which contain data, disregarding blanks.

    mew!
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Setting Numerical Limits in a Cell

    Average function ignores blanks so if your "blank" cells are truly blank, i.e. not zero, then you can just use a regular average,

    =AVERAGE(A1:A7)

+ 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