+ Reply to Thread
Results 1 to 7 of 7

Round number down if exceeds x

  1. #1
    Registered User
    Join Date
    03-17-2020
    Location
    England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    2

    Round number down if exceeds x

    Hi guys first post here I am struggling to find a method to set cell equation to max of 100.

    Formula : =IF(F3="W",(E3-B3),0)
    Explanation: The answer from E3-B3 can vary from 1 to 200+ but I want it to display a maximum ammount as 100 .
    I cannot validate "E or B " as that is a separate thing .

    I hope this makes sense , all I want is the If statement to workout E-B and not exceed an ammount.

  2. #2
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Round number down if exceeds x

    Try:

    =IF(F3="W",max((E3-B3),100),0)
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Round number down if exceeds x

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Round number down if exceeds x

    @mody
    you need the MIN function here, not the MAX function

  5. #5
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Round number down if exceeds x

    sorry, Pepe is right. It should be MIN in the formula.

  6. #6
    Registered User
    Join Date
    03-17-2020
    Location
    England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    2

    Re: Round number down if exceeds x

    Thank you very much Pepe!
    I tried Max before asking question here and it never worked,
    I would have never though MIN would do the trick.
    Thank you again

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Round number down if exceeds x

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Pop-up message if value for sum of cells exceeds a predefined number
    By dLhx in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-24-2018, 10:58 PM
  2. Returning 0 if rank exceeds a given number
    By darkyam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2015, 09:59 AM
  3. Replies: 2
    Last Post: 12-06-2014, 01:58 PM
  4. [SOLVED] counting if a value exceeds a specified number
    By Albert in forum Excel General
    Replies: 2
    Last Post: 07-20-2006, 09:20 AM
  5. Locate first number that exceeds reference value
    By Nick Krill in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-05-2006, 11:40 PM
  6. Delete A Word That Exceeds X Number Of Characters
    By brazen234 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-31-2005, 12:40 PM
  7. [SOLVED] Footers in which number of characters exceeds 255
    By DRK in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-09-2005, 01:05 PM

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