+ Reply to Thread
Results 1 to 4 of 4

Ignoring Blank Cells But Keeping Index of Non-Blank Cells w/ Data Validation and ScrollRow

  1. #1
    Registered User
    Join Date
    07-21-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Ignoring Blank Cells But Keeping Index of Non-Blank Cells w/ Data Validation and ScrollRow

    Hi folks!

    My question seems simple and straightforward but I can't my wrap my head around it.

    I have a Data Validation list using a named range which includes blank cells. When I click on an item from the list, the excel sheet scrolls to that cell using this formula:

    Please Login or Register  to view this content.
    The issue is, the list includes the blanks also. Can someone help me figure out how to get rid of the blank cells but keep the original row value of the non-blank cells (since the Linked Cell shows the order value and not the actual row index)?

    Attached is what I have so far.

    Thank you so much.

    EDIT: I do not mind using ActiveX controls if there is a solution available using that method.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Ignoring Blank Cells But Keeping Index of Non-Blank Cells w/ Data Validation and Scrol

    This uses an ActiveX combobox. Put the code in the worksheet's code module. It will populate the combobox with unique values from column A whenever there is a change to the column. It also stores the row number for each unique item in a 2nd hidden column within the combobox. Then when you select an item, it scrolls to the selected item's row.

    After creating the combobox and pasting the code, make an initial change in column A to populate the list.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-21-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Re: Ignoring Blank Cells But Keeping Index of Non-Blank Cells w/ Data Validation and Scrol

    AlphaFrog, you are absolutely brilliant. This works flawlessly. Thank you so much for going out of your way to help me. Thank you again, much appreciated! :D
    Last edited by AliGW; 07-24-2017 at 09:14 AM. Reason: Unnecessary quotation removed.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Ignoring Blank Cells But Keeping Index of Non-Blank Cells w/ Data Validation and Scrol

    You're welcome. Thanks for the feedback.

+ 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: 1
    Last Post: 07-22-2016, 04:03 PM
  2. =INDEX(LINEST help on ignoring blank cells please...
    By fitrader in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2015, 11:10 PM
  3. Keeping cells blank until data is entered?
    By mikeuk1954 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-27-2013, 03:48 PM
  4. Replies: 0
    Last Post: 03-05-2012, 05:50 AM
  5. Ignoring blank cells with data validation
    By worecx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2011, 02:11 PM
  6. Excel 2007 : Sort data whilst ignoring blank cells
    By Klara in forum Excel General
    Replies: 1
    Last Post: 10-06-2011, 07:21 AM
  7. Keeping Blank Cells Until Data Entered
    By msf316 in forum Excel General
    Replies: 3
    Last Post: 02-27-2009, 03:55 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