+ Reply to Thread
Results 1 to 5 of 5

How to put data validation using formula for the case mentioned in description?

  1. #1
    Registered User
    Join Date
    09-21-2017
    Location
    Home
    MS-Off Ver
    2013
    Posts
    2

    Question How to put data validation using formula for the case mentioned in description?

    Version Info:
    MS Office Version used: 2013
    Compatibility of the solution required for versions: 2007 and above.

    Case:
    Help required to put data validation on the whole column using formula. (Unable to form a formula)

    Details:
    There are three columns (say) A, B and C. Need to put data validation in column B & C so that following business rules are validated:
    1. All three columns should have positive decimal amount only.
    2. Amount under A and B should be same.
    3. If both A and B are zero, then only amount under C can be entered. In other words, amount under C should be more than zero if A=B=0, and if A and B has amounts, C should be zero.

    Note:
    1. Formula cannot be kept in the excel directly to put the value entered in A directly in B, as then formula have to be put in all the columns.
    2. Table functionality cannot be used in order to support older versions.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to put data validation using formula for the case mentioned in description?

    All three columns should have positive decimal amount only
    Does this mean all values are <1 ?
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    09-21-2017
    Location
    Home
    MS-Off Ver
    2013
    Posts
    2
    Quote Originally Posted by kev_ View Post
    Does this mean all values are <1 ?
    No. I meant positive decimal values, that is >1. Numbers can be whole or in decimal. Natural numbers.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to put data validation using formula for the case mentioned in description?

    do you mean
    > 1 OR > 0

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: How to put data validation using formula for the case mentioned in description?

    EDIT : formula amended and file replaced (error in original submission)

    I have assumed you mean > 0
    (easy to amend the formula if you meant >1 )
    The formula below are Data Validation formula

    in A1
    =IF(B1>0,A1=B1,A1>=0)

    In B1
    =AND(B1>=0,B1=A1)

    In C1
    =IF(B1=0,C1>0,C1=0)

    test in attached workbook
    Attached Files Attached Files
    Last edited by kev_; 09-21-2017 at 11:22 AM.

+ 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: 3
    Last Post: 02-25-2014, 05:31 AM
  2. Data Validation with Tooltip (Description)
    By spora in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2014, 07:58 PM
  3. Replies: 1
    Last Post: 12-11-2013, 02:55 AM
  4. [SOLVED] Formula Validation - Returning Description or $ Difference
    By PERE in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2013, 12:34 AM
  5. Case Sensitive Data Validation
    By hambly in forum Excel General
    Replies: 6
    Last Post: 11-21-2011, 01:52 PM
  6. Upper case only, in data validation?
    By proepert in forum Excel General
    Replies: 2
    Last Post: 12-08-2010, 11:37 PM
  7. Dependent Data Validation Special Case
    By nukecity83 in forum Excel General
    Replies: 1
    Last Post: 04-08-2009, 12:43 PM
  8. Case Sensitive Data Validation
    By blatham in forum Excel General
    Replies: 1
    Last Post: 12-12-2006, 12:07 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