+ Reply to Thread
Results 1 to 7 of 7

Seting the minimum value in a cell

  1. #1

    Seting the minimum value in a cell

    i am trying to get a currency cell to have a minimum value of =A30 (i
    dont want it to go into -=A3)..the cell has a simple formula in it...so
    i need to have the formula still....i tryed typing in MIN (0) but that
    didnt work....im guessing its in some sort of properties....can any1
    help

    thanks


  2. #2
    JON JON
    Guest

    Re: Seting the minimum value in a cell

    Assume you input data in A1 and your formula in A2

    Select A1
    Goto Data>Validation
    In settings tab Allow: Custom, Formula: =A2>0

    You may want to look at other settings and customize to suits your need.


    <[email protected]> wrote in message
    news:[email protected]...
    i am trying to get a currency cell to have a minimum value of £0 (i
    dont want it to go into -£)..the cell has a simple formula in it...so
    i need to have the formula still....i tryed typing in MIN (0) but that
    didnt work....im guessing its in some sort of properties....can any1
    help

    thanks



  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    You could also try formatting the cell as

    [>0]#,##0;;;

    or a If statement

    =if(A30<=0,"",A30)
    VBA Noob

  4. #4

    Re: Seting the minimum value in a cell

    ok....the cell is i11.....and all it is doing is =3DH11-500........its
    currency....basically ....if H11 is less than =A3500 then the cell i11
    goes into minus.....instead of that i jst want it to say =A30.....any
    ideas?


  5. #5
    MartinW
    Guest

    Re: Seting the minimum value in a cell

    Hi crispy,

    Try this in I11

    =IF(H11-500<0,0,H11-500)

    HTH
    Martin



  6. #6

    Re: Seting the minimum value in a cell

    hey.........thank u....life saver lol


  7. #7
    Carlos Antenna
    Guest

    Re: Seting the minimum value in a cell

    =MAX(H11-500,0)

    --
    Carlos

    "MartinW" <[email protected]> wrote in message
    news:%[email protected]...
    > Hi crispy,
    >
    > Try this in I11
    >
    > =IF(H11-500<0,0,H11-500)
    >
    > HTH
    > Martin
    >




+ 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