+ Reply to Thread
Results 1 to 3 of 3

Limit a cell with average formula to 100%

Hybrid View

Tony Vargo Limit a cell with average... 08-07-2009, 07:18 AM
martindwilson Re: Limit a cell with average... 08-07-2009, 07:27 AM
Tony Vargo Re: Limit a cell with average... 08-07-2009, 10:19 AM
  1. #1
    Forum Contributor
    Join Date
    06-18-2008
    Posts
    124

    Limit a cell with average formula to 100%

    Hi all.

    I have a formula that works out the average, but displays as a blank cell if no data is available.

    =IF(E6=0,"",F6/E6)
    The problem I have is sometimes, the value will go over 100%. I want to limit the cell to 100%. I have searched on this subject and found a few formulas such as MIN etc, but I cant get them to work.

    Can anyone help me please?

    Thanks,

    Tony

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Limit a cell with average formula to 100%

    =min(F6/E6,1)

    =IF(E6=0,"",min(F6/E6,1))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    06-18-2008
    Posts
    124

    Re: Limit a cell with average formula to 100%

    Brilliant, thanks a lot

+ 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