+ Reply to Thread
Results 1 to 3 of 3

limit a cell value

  1. #1
    Registered User
    Join Date
    03-09-2005
    Posts
    8

    limit a cell value

    Hi

    Does anyone know how I can limit a cells value to be no more than 2

    eg i have a cell that has a fomula in it and the result can be anything from 0 to 400 but I want to limit it so that if the number is higher than 2 it will only display it as 2.

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    modify your existing formula to something like this:
    Original formula is
    = formula

    new formula should be
    = if(formula>2,2,formula)

    e.g. if formula is
    =A1+B1
    then it should be
    = if(A1+B1>2,2,A1+B1)

    - Mangesh

  3. #3
    Registered User
    Join Date
    03-09-2005
    Posts
    8
    Thanks a lot!

    My formula was vastly more complex than that but amizingly it has worked!!!

    Thanks again :D

+ 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