+ Reply to Thread
Results 1 to 3 of 3

Remove items from dropdown list when item value = 0

  1. #1
    Registered User
    Join Date
    11-21-2017
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    1

    Remove items from dropdown list when item value = 0

    Hello,

    I would like to remove items from dropdown list when value that is attributed to that item equals 0

    Label Amount
    Book1 5
    Book2 2
    Book3 0

    In this example I would like to remove in dropdown list (data validation) book 3, because value for amount is 0.

    Can you please help me with the correct formula?

    Thank you.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    2012 for Mac at home
    Posts
    7,286

    Re: Remove items from dropdown list when item value = 0

    I don't think you can do that with a formula without a helper column. you could use =IF(B2>0,A2,"") then use copy paste special values and take the values in C and past them over the values in A. You could use sort for column B descending then delete all those at the bottom that have a 0. I think the only other way is using VBA and someone might post a formula for that. (I'm assuming that Book1 is in column A and the amount is in column B)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,676

    Re: Remove items from dropdown list when item value = 0

    see attached example. Does that help? If not, attach a sample file so we can help you with solution. It may require VBA if helper column isn't acceptable.
    Attached Files Attached Files

+ 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. [SOLVED] Can't add over 9 items to a list item
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-17-2017, 08:04 PM
  2. Replies: 7
    Last Post: 11-21-2016, 04:40 PM
  3. Problem getting conditional formatted dropdown list items to keep their formatting in list
    By scottatbuckman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2014, 02:39 PM
  4. Remove duplicates and populate items based on dropdown
    By Dak! in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-11-2014, 06:33 PM
  5. Remove specific item from array while preserving order of remaining items
    By g8r777 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2012, 01:57 AM
  6. Replies: 21
    Last Post: 12-02-2009, 03:27 PM
  7. [SOLVED] How can I set up to chose more than 1 item from a dropdown list (.
    By microchick in forum Excel General
    Replies: 4
    Last Post: 04-07-2005, 02: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