+ Reply to Thread
Results 1 to 5 of 5

Limiting User input to a minimum and maximum value

  1. #1
    Registered User
    Join Date
    05-03-2020
    Location
    Orange County, CA
    MS-Off Ver
    Profession Plus 2013
    Posts
    3

    Limiting User input to a minimum and maximum value

    Hi.

    Thanks in advance for your help with this.

    I am trying to find a way to limit used input to between a maximum and minimum number. I think it may be using Custom Data validation, but it only seems to accept one variable.

    For example, if cell A1=100,000 and cell B1=100, I would like to limit user input in cell C1 to a number between A1 (100,000) and B1 (100).

    I appreciate your time with this.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Limiting User input to a minimum and maximum value

    Try somwething like this...
    =AND(a1<=100000,b2>=100)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-03-2020
    Location
    Orange County, CA
    MS-Off Ver
    Profession Plus 2013
    Posts
    3

    Re: Limiting User input to a minimum and maximum value

    Thanks for your reply. Not quite what I am trying to do. Cells A1 and B1 are variables. The user will be populating cells A1 and B1 with numbers. But I just want to limit the input into cell C1 to a number between A1 and B1.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Limiting User input to a minimum and maximum value

    OK same approach...
    =AND(c1<=a1,c1>=b1)

  5. #5
    Registered User
    Join Date
    05-03-2020
    Location
    Orange County, CA
    MS-Off Ver
    Profession Plus 2013
    Posts
    3

    Re: Limiting User input to a minimum and maximum value

    Perfect. Thanks very much.

+ 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. Set a minimum and maximum
    By kwentanio in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2020, 05:22 PM
  2. [SOLVED] Limiting a cell result to a minimum value
    By execlass2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-17-2019, 12:45 PM
  3. [SOLVED] limiting a result to a maximum
    By Marvo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-19-2018, 01:21 PM
  4. Minimum and maximum IF help
    By Dawndinosaur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-28-2016, 12:58 AM
  5. Minimum and maximum
    By ikke88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-06-2015, 04:09 AM
  6. Minimum and maximum value of a group
    By dvnr_76 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2014, 02:04 AM
  7. Maximum and Minimum
    By lurchybold in forum Excel General
    Replies: 6
    Last Post: 10-13-2010, 11:04 AM

Tags for this Thread

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