+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting

  1. #1
    Emily
    Guest

    Conditional Formatting

    Hi. I am trying to create a conditional formula so that if I have 0, it
    returns 0, if I have a number greater than or equal to 30 to show 30, and
    anything in between 0 and 30 it shows said number. How do I do this? Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Emily,

    Assuming your value is in A1, in B1

    =IF(A1>=30,30,A1)



    HTH

    Steve

  3. #3
    Elkar
    Guest

    RE: Conditional Formatting

    Try this:

    =IF(formula<=0,0,IF(formula>=30,30,formula))

    Where "formula" is your original formula.

    HTH,
    Elkar


    "Emily" wrote:

    > Hi. I am trying to create a conditional formula so that if I have 0, it
    > returns 0, if I have a number greater than or equal to 30 to show 30, and
    > anything in between 0 and 30 it shows said number. How do I do this? Thanks.


  4. #4
    David Biddulph
    Guest

    Re: Conditional Formatting

    "SteveG" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Emily,
    >
    > Assuming your value is in A1, in B1
    >
    > =IF(A1>=30,30,A1)


    .... or =MIN(A1,30)

    Emily didn't, of course, specify what she wanted to output if A1 is less
    than zero.
    --
    David Biddulph



+ 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