+ Reply to Thread
Results 1 to 5 of 5

Data validation IF statement

  1. #1
    Registered User
    Join Date
    12-23-2003
    Location
    Perth, Western Australia
    Posts
    27

    Data validation IF statement

    Hi There

    I am trying to create a data validation rule that only allows a neagtive value to be entered if the word "backcharge" appears in an adjacent cell.

    So far I have come up with = if(d2="backcharge",<=0, .... But I am not sure how to finish it off.

    I am sure this is relatively simple problem but any help is greatly appreciated.

    Cheers

    Chris
    Last edited by NBVC; 11-12-2009 at 12:16 PM. Reason: Marked Solved based on Rep comments

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data validation IF statement

    Try custom Data Validation formula, assuming you are entering number in E2:

    =AND(D2="Backcharge",E2<0)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-23-2003
    Location
    Perth, Western Australia
    Posts
    27

    Re: Data validation IF statement

    wow thanks for the quick reply... that worked a treat but....

  4. #4
    Registered User
    Join Date
    12-23-2003
    Location
    Perth, Western Australia
    Posts
    27

    Re: Data validation IF statement

    wow thanks for the quick reply... that worked a treat but....

    the way the spreadsheet is setup the value is entered before backcharge can be selected from the dropdown list

    I.E the value is entred in column D and the drop down list is in column F so in practice the value will be entered first.

    The rule works just fine when the drop down box is used to select backcharge and then the value is entered but not the other way round

    Any suggestions?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Data validation IF statement

    Remove the data validation from E2

    And apply data validation custom formula in D2

    =IF(D2="Backcharge",E2<0,ISNUMBER(E2))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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