+ Reply to Thread
Results 1 to 7 of 7

Hiding blank rows in a drop down data validation list, help please?

  1. #1
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Hiding blank rows in a drop down data validation list, help please?

    Hi, I am trying to hide the blank rows at the bottom of a drop down data validation list.
    I think the formula I am using works ok but it doesn't hide the blank rows at the bottom.
    The cells being referenced from the formula DL2 are also formulas DI6 to DI254 which I think are the problem as they are not really blank cells.
    If I delete to cells that contain formulas that are not being used all is ok but I need the formulas as the list will be different sizes.
    I will include a sample workbook.
    Many thanks in advance.
    Attached Files Attached Files
    Last edited by A440; 03-11-2019 at 11:26 AM.

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Hiding blank rows in a drop down data validation list, help please?

    Is this any help?
    https://www.excelforum.com/excel-for...ml#post5078191

  3. #3
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Hiding blank rows in a drop down data validation list, help please?

    Hi ByteMarks, Thank you for your reply. I shall continue reading the info you linked. Many thanks.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Hiding blank rows in a drop down data validation list, help please?

    You can change your formula to:

    =OFFSET(DI5,1,MATCH(DL5,DI5,0)-1,COUNTIF(OFFSET(DI5,1,MATCH(DL5,DI5,0)-1,240,1),"?*"),1)
    Rory

  5. #5
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Hiding blank rows in a drop down data validation list, help please?

    Hi rorya, Thank you for that, however it works fine for "Orders" but if you change DL5 drop down 1 to "Invoice" or "Unpaid" sadly it does not list anything in DL6 drop down 2. Sorry, "Orders" contains text whereas "Invoice, UnPaid, OverDue" are numbers only.
    Last edited by A440; 03-11-2019 at 01:11 PM.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Hiding blank rows in a drop down data validation list, help please?

    You could use:

    =OFFSET(DI5,1,MATCH(DL5,DI5,0)-1,MAX(COUNT(OFFSET(DI5,1,MATCH(DL5,DI5,0)-1,240,1)),COUNTIF(OFFSET(DI5,1,MATCH(DL5,DI5,0)-1,240,1),"?*")),1)

    I'd simplify by making the OFFSET(DI5,1,MATCH(DL5,DI5,0)-1,240,1) part a separate named range

  7. #7
    Forum Contributor
    Join Date
    11-03-2012
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    246

    Re: Hiding blank rows in a drop down data validation list, help please?

    Hi rorya, That is just fantastic, my head is fried, I just couldn't have worked that out in a month of Sundays.
    Your help is very much appreciated. Thank you. Have a good 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. Dependent Data Validation Drop Down List for multiple rows?
    By Howie Dean in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-16-2018, 05:31 PM
  2. [SOLVED] How to insert a blank row between two rows of list names in data validation
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 10:52 PM
  3. [SOLVED] Hiding rows with drop down list (VBA code help)
    By dsl99 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-17-2012, 02:29 PM
  4. [SOLVED] How to avoid blank rows in DATA VALIDATION list?
    By pejoi in forum Excel General
    Replies: 3
    Last Post: 11-24-2012, 10:53 PM
  5. [SOLVED] Hiding rows based on Cell Colour & Data Validation Value
    By Mowgli in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-11-2012, 09:10 AM
  6. Replies: 0
    Last Post: 03-05-2012, 05:50 AM
  7. [SOLVED] Showing or Hiding rows based on data validation list
    By Magnet Peddler in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2006, 04:40 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