+ Reply to Thread
Results 1 to 4 of 4

Data validation

  1. #1
    Registered User
    Join Date
    01-18-2017
    Location
    egypt
    MS-Off Ver
    2013
    Posts
    10

    Data validation

    I need to make validation list but work only if another cell is not blank otherwise it not work

    Simply I have a list in I5 cell contain data validation List of 1,2,3,4,5

    I need this list work only If A5 is not blank
    Last edited by mmenshawy2; 01-29-2017 at 08:36 AM.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Data validation

    Need a little more detail.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Data validation

    You can do this with a named range which is a formula. Go to the 'Formulas' tab and click 'Define Name'. Enter a name, for example 'ListIfA5NotBlank' and put this in the formula box:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Change $Z$1:$Z$5 to where you have the numbers 1 to 5 stored.
    Click OK.

    Before going any further, make sure you have something in A5 - any number/letter will do.

    Now select I5 and go to Data Validation. Select 'List' and enter your named range as the source:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Click OK.

    Now you'll see the drop-down list in I5. If you delete the value in A5 the drop-down won't work.

    Warning - if you select something from the list, then delete the value in A5, the previously selected value will still be there - it won't automatically disappear. You can delete it manually, but to get it to automatically delete would need VBA.

    Hope that does what you want.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Data validation

    As you've marked the thread as solved, I assume the above worked for you. Thanks for the rep as well.

+ 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: 06-04-2015, 02:27 PM
  2. Data validation depending on other data validation without named lists
    By Stormbringer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-20-2015, 11:24 AM
  3. [SOLVED] Data Validation: How to clear/delete the content of the cell and not Data Validation List?
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-07-2015, 09:42 AM
  4. Replies: 4
    Last Post: 07-03-2014, 02:37 AM
  5. Replies: 4
    Last Post: 12-19-2013, 10:44 AM
  6. Adding Date Data Validation to cells with List Data Validation
    By biggtyme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2013, 09:47 AM
  7. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM

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