+ Reply to Thread
Results 1 to 5 of 5

Conditional Data Validation Amount

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    Inida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Post Conditional Data Validation Amount

    Hey ..
    I've been having this issue. I've tried alot of things but nothing seems to work.

    In Column G I've a Data Validation Drop Down List with "BB" And "BS" as two options. For every "BB" or "BS" in Column G there is an Amount in Column H
    .

    What I want is.

    Incase the option "BS" is selected in Column G only an amount greater than 0 can be entered in Column H.
    Incase the option "BB" is selected in Column H only an amount less than 0 can be entered in Column H.

    Is this possible using Data Validation or any other technique ?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Conditional Data Validation Amount

    hi Meunixx, welcome to the forum. yes you can use Data Validation. say you want it in H2:H10.
    1. select from H2:H10
    2. go to Data -> Data Validation -> Allow: Custom -> Formula:
    =IF(G2="BB",H2>0,H2<0)
    3. press OK & you are done
    Attached Files Attached Files
    Last edited by benishiryo; 07-12-2013 at 04:44 AM. Reason: added file

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    07-11-2013
    Location
    Inida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Conditional Data Validation Amount

    Thanks .. I tried the same thing my self but it didn't work. May be had some coding wrong ..

    Thanks Anyways

  4. #4
    Registered User
    Join Date
    07-11-2013
    Location
    Inida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Red face Re: Conditional Data Validation Amount

    Thanks .. I tried the same thing my self but it didn't work. May be had some coding wrong ..

    Thanks Anyways

  5. #5
    Registered User
    Join Date
    07-11-2013
    Location
    Inida
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Conditional Data Validation Amount

    Sir,

    The problem is solved.
    But now there seems to be another problem.

    Suppose if I enter "BB" in column G and enter an amount less than 0 in Column H it'll accept it.
    But then after entering a (-) amount I change "BB" to "BS" its still accepting it without giving any error.

    Is it possible to plugin this loophole ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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