+ Reply to Thread
Results 1 to 3 of 3

Switch validated list items on or off

  1. #1
    Registered User
    Join Date
    03-17-2013
    Location
    Surrey, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Switch validated list items on or off

    Dear Forum

    I wonder if you can help

    I have a timesheet spreadsheet on tab 1 of excel

    Tab 1 column A is project number, and users select project number using a validated dropdown list on the cell. The validated drop down list source is on tab 2. Tab 2 column A is project number and tab 2 column B is 'date project completed'. If a project on tab 2 has a corresponding date completed, I do not want that project number to show in the list on tab 1 column A

    I'm struggling to come up with a solution and would be grateful for any help. I am mostly happy with formula, but need a lot of hand holding for code, but would be pleased to give anything a go.

    Many thanks in advance

    Alex

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Thumbs up Re: Switch validated list items on or off

    This can be done with a secondary set of helper cells. I would use two extra columns.

    Let's assume column S and T are free. S will become an INDEX of rows with no complete date. So in S2:

    =IF(AND(A2<>"", B2=""), N(S1)+1, N(S1))

    Copy that down. This formula will NUMBER the rows that have a value in column A but no value in column B. You will see repeated numbers for the rows that have a completion date. Our next step will skip those repeats.

    Now in T we will create a NEW list of projects using the index in column S.

    T2: =IF(ROWS($A$1:$A1)>MAX(S:S), "", INDEX(A:A, MATCH(ROWS($A$1:$A1), S:S, 0))

    Now create your dropdown list on sheet1 using column T instead of A.

    Post a sample workbook if you need assistance applying this suggestion.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Last edited by JBeaucaire; 08-31-2017 at 06:46 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-17-2013
    Location
    Surrey, England
    MS-Off Ver
    Excel 2007
    Posts
    12

    Talking Re: Switch validated list items on or off

    Great. Thank you very much for your help!

+ 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. is it possible to Validated a cell as list using named list?
    By yellowpower in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2011, 06:53 AM
  2. Unique Dynamic Validated List
    By Jason Morin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] Unique Dynamic Validated List
    By Jason Morin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. Unique Dynamic Validated List
    By Jon C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. Unique Dynamic Validated List
    By Jon C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. Unique Dynamic Validated List
    By Jon C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. [SOLVED] Unique Dynamic Validated List
    By Jon C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2005, 12:09 PM
  8. [SOLVED] how do I resize the text in a validated list?
    By RL in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-04-2005, 08:06 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