+ Reply to Thread
Results 1 to 12 of 12

Data validation: If previous column is having a value, then return FALSE else TRUE

Hybrid View

acsishere Data validation: If previous... 06-27-2008, 02:22 PM
NBVC you mean? ... 06-27-2008, 02:27 PM
acsishere Dear Sir, 06-27-2008, 02:49 PM
NBVC I am not following then. I... 06-27-2008, 02:55 PM
acsishere Dear Sir, 06-27-2008, 03:10 PM
acsishere Dear Sir, (File not attached... 06-27-2008, 03:11 PM
NBVC I don't believe you can do... 06-27-2008, 03:20 PM
acsishere Dear Sir, 06-27-2008, 03:26 PM
NBVC Maybe with VBA and... 06-27-2008, 03:28 PM
acsishere Dear Sir, 06-27-2008, 04:02 PM
ChemistB Here is a possible solution... 06-27-2008, 04:04 PM
acsishere Dear Sir, 06-27-2008, 04:39 PM
  1. #1
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Smile Dear Sir, (File not attached in previous post)

    Now, the file is attached.

    Sorry for the inconvenience.

    acsishere.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I don't believe you can do that with Data Validation when you are involving Lists.
    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
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Smile Dear Sir,

    Is it not possible? Any other alternatives?

    acsishere.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Maybe with VBA and comboboxes? I am not sure.... and I am not a VBA coder.

  5. #5
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Smile Dear Sir,

    Thanks for your valuable time. If you say that it is not possible with formula, then I will try to change logical design of my worksheet.

    Thanks a lot for your guidance.

    acsishere.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Here is a possible solution using the data validation in combination with VBA. The VBA code is connected to the spreadsheet (Right click on Sheet2 tab and "View code"). What it basically does is erases your entry if there is an "S" in column 6 (F). If not, your data validation works normally.

    The code is as follows
    Private Sub worksheet_Change(ByVal Target As Range)
    
        If Target.Count = 1 And Target.Column = 7 Then
            Application.EnableEvents = False
            i = Target.Row
            If Cells(i, 6).Value = "S" Then
                Cells(i, 7).Value = ""
            End If
        End If
        Application.EnableEvents = True
        
    End Sub
    ChemistB
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-15-2008
    Location
    Tamil Nadu, India.
    MS-Off Ver
    Microsoft Office 2016
    Posts
    584

    Smile Dear Sir,

    Thanks a lot for your code. It works very nicely.

    Again, Thanks! Thanks! Thanks!

    acsishere.

+ 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