+ Reply to Thread
Results 1 to 6 of 6

Limit Cell values

  1. #1
    Registered User
    Join Date
    08-02-2010
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Limit Cell values

    Hi,

    Just needing to know if you can limit the value entered in a cell to be no more than double the value in another cell. ie.. if B1 = 4 then the data in cell B2 can not be more than 8.

    Any assistance is appreciated

    Regards
    David

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Limit Cell values

    Yes. This is a perfect job for Data Validation.

    Select B2
    Go to the menu and select Data > Data Validation > Data Validation
    For Allow select Custom
    In the formula bar put
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is a formula that must always be true, or the data will not be allowed.

    click OK to exit
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-02-2010
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Re: Limit Cell values

    Hi 6StringJazzer,

    Thanks for the quick reply, I neglected to mention that there is another criterior as well, ie. depending if a person is a Male or Female .ie column D will show either M or F next to their names and depending on M or F will determin which row to be used in the validation ie. if Jo is M then B1, if Sue is F then B2 etc.

  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,929

    Re: Limit Cell values

    your request is confusing, please upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  5. #5
    Registered User
    Join Date
    08-02-2010
    Location
    Canberra, Australia
    MS-Off Ver
    Excel 2013
    Posts
    26

    Re: Limit Cell values

    sorry cant seem to find how to upload file

  6. #6
    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,929

    Re: Limit Cell values

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

+ 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. Replies: 8
    Last Post: 08-16-2016, 10:27 PM
  2. Need Max X & Z Values above Y limit
    By seanfoxen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2012, 03:22 PM
  3. Replies: 2
    Last Post: 03-09-2011, 04:48 AM
  4. coding to add values until a certain limit
    By dan2010 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-16-2010, 05:18 AM
  5. how to limit the values of cells
    By Tantalus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2009, 02:22 PM
  6. How to Limit Cell Values to Multiple of 10?
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2006, 10:50 AM
  7. [SOLVED] limit choice in cell to one of two values;
    By in forum Excel General
    Replies: 3
    Last Post: 02-18-2005, 06:06 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