+ Reply to Thread
Results 1 to 11 of 11

How to ignore zero values in list for data validation

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    How to ignore zero values in list for data validation

    I have a horizontal list, that has blank cells. How do I ignore blank cells in data validation.

    I use Microsoft 365.

    Please help.

    Thanks.
    Last edited by mikehk; 07-02-2020 at 03:13 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,805

    Re: How to ignore blanks in data validation list

    An oft asked question - lots of threads on it here.

    Have a look here: https://www.contextures.com/xlDataVal08.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: How to ignore blanks in data validation list

    Thanks for the link, please help me with this
    formula as it shows blank cells.



    =OFFSET(B1,0,0,1,COUNTIF(RawDataYear,"<>"))

    I have created a name manager for cells
    $B$1:$AH$1

    cell B1 has number C1 is empty D1 has number E1 is empty ...so on.

    Thanks.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,805

    Re: How to ignore blanks in data validation list

    There are instructions at the top of the page explaining how to attach your sample workbook.

  5. #5
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: How to ignore blanks in data validation list

    Please find sample sheet attached.
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,805

    Re: How to ignore blanks in data validation list

    Your thread title is misleading - please change it. The items you wish to ignore in the list are zero values, not blanks. Thanks.

  7. #7
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: How to ignore blanks in data validation list

    Oh ya ....ignore the zero values. How to do that?
    Thread title changed.

    Thanks.

  8. #8
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: How to ignore zero values in list for data validation

    this formula works
    =FILTER(B1:AG1,B1:AG1>2000)

    if used with OFFSET formula gives me a #VALUE error
    =OFFSET(B1,0,0,1,COUNTIF(FromYear,(FILTER(B1:AG1,B1:AG1>2000))))

    I attach the sample sheet. Please help.

    Thanks.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to ignore zero values in list for data validation

    Perhaps the following will help.
    Produce a list in XFD1:XFD45 using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The source for the data validation is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  10. #10
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: How to ignore zero values in list for data validation

    It is way over my understanding but it works!

    thank you

  11. #11
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: How to ignore zero values in list for data validation

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Data Validation List - how to ignore blanks?
    By Blancorn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2019, 07:02 PM
  2. [SOLVED] Ignore blanks using indirect in data validation list
    By jaryszek in forum Excel General
    Replies: 11
    Last Post: 12-18-2018, 07:59 AM
  3. [SOLVED] Ignore blanks at end of Dynamic Validation List
    By VBA FTW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-04-2013, 01:58 PM
  4. Validation List ignore blanks (formula)
    By portmontreal in forum Excel General
    Replies: 2
    Last Post: 07-16-2009, 02:52 PM
  5. [SOLVED] Ignore Blanks in Data Validation
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 12:05 PM
  6. [SOLVED] Ignore Blanks in Data Validation
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 06:05 AM
  7. Ignore Blanks in Data Validation
    By Ricky in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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