+ Reply to Thread
Results 1 to 6 of 6

How to prevent users for putting a negative sign in excel

  1. #1
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    How to prevent users for putting a negative sign in excel

    Hello,

    Is there a way to prevent user from putting a negative sign in front of their value? I want the numbers to always be absolute values.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    14,751

    Re: How to prevent users for putting a negative sign in excel

    How about data validation, where you can specify "whole number" or "decimal" greater than 0, or use a custom formula allow values where value>=0
    https://support.office.com/en-us/art...6-eff3ce5f7249
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How to prevent users for putting a negative sign in excel

    The only problem with that is I already have a validation for this particular cell and I don't think I can apply more than one validation on the same cell.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    14,751

    Re: How to prevent users for putting a negative sign in excel

    I think you are right, that you can have only one data validation on a cell. However, using the custom -- formula option, one could put in some pretty complex criteria and checks to determine whether to allow or disallow a value. For example, I could restrict to even numbers greater than 0 with a formula like =AND(ISEVEN(A1),A1>0). You have not indicated what your current data validation criteria are, so I don't know if it really would be impossible to ad an additional >=0 criteria to the existing data validation or not.

  5. #5
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How to prevent users for putting a negative sign in excel

    The data validation I have on the cell now under Custom is "=ISNUMBERS(A1)" to prevent blank cells. Is there a formula to combine the two, prevent blank cells and prevent negative number?

  6. #6
    Registered User
    Join Date
    12-12-2016
    Location
    Alabama, United States
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: How to prevent users for putting a negative sign in excel

    Actually the formula you just provided solves both of my problems!! Thank you so 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. [SOLVED] Putting = Sign infront of Cells
    By Excel-Access in forum Excel General
    Replies: 4
    Last Post: 10-06-2015, 06:07 AM
  2. Replies: 1
    Last Post: 04-26-2012, 12:48 AM
  3. Negative sign is on right end
    By Scorpvin in forum Excel General
    Replies: 5
    Last Post: 06-24-2010, 12:37 AM
  4. negative numbers w/o negative sign
    By whtbullitt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2009, 05:07 AM
  5. protect cells in excel to prevent users from deleting formulae
    By locking cells in excel in forum Excel General
    Replies: 2
    Last Post: 06-14-2006, 01:00 PM
  6. [SOLVED] How can I prevent users from linking to other sources in Excel?
    By Zuni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2006, 02:55 PM
  7. prevent users from overwriting other users data
    By tino.toendra@gmail.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-17-2005, 04:06 PM

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