+ Reply to Thread
Results 1 to 4 of 4

Limit Number of Rows

Hybrid View

  1. #1
    Registered User
    Join Date
    01-23-2015
    Location
    Des Moines, Iowa
    MS-Off Ver
    2010
    Posts
    2

    Limit Number of Rows

    Hello,

    My problem is that I'm creating an excel sheet to handle a large amount of data and requires data validations (lists). Is there any way to limit the number of rows in a worksheet so when I add a data validation to a column it doesn't go down to row 65,000(?)? I know I could simply select the rows in the column and add the validation, but it's going across a lot of columns and this would be somewhat time consuming.

    So, in essence, I'd like the worksheet to only have ~5,000 rows, rather than 65,000. Hide doesn't work, as it still adds the data validations when I select the column. The standard VBA code won't help because it leaves when the workbook is closed.

    Thanks!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,749

    Re: Limit Number of Rows

    I am not understanding your issue. Perhaps if you explained with a real life example it might be more meaningful.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-23-2015
    Location
    Des Moines, Iowa
    MS-Off Ver
    2010
    Posts
    2

    Re: Limit Number of Rows

    Now looking at Excel 2010, it defaults to having 1,048,476 columns down.

    The sheet I have requires decisions to be picked from data validation lists.

    When I add the data validation lists to a column, I select the whole column and add. This adds data validations all the way down to row 1,048,476, which bogs down the spreadsheet, as several columns have data validation lists.

    Is there any way to make it so the maximum number of rows is, say, 5,000? Rather than 1,048,476? That way, when I add a data validation rule to a column, it only goes down 5,000 rows, rather than the remaining million??

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,749

    Re: Limit Number of Rows

    Why select the whole column.

    Here is Debra Dagleish's take on dynamic range validation. http://www.contextures.com/xlDataVal02.html

    Using Dynamic Lists

    Because the INDIRECT function only works with references, not formulas, the previous method for dependent data validation won't work with dynamic lists. Instead, you can use the following method:

    Create the first named range and dropdown list as described above.
    Create the supporting named lists, and name the first cell in each range, e.g. cell B1 is named Fruit and cell C1 is named Vegetables.
    Dependent dynamic lists

    Name the column in which each list is located, e.g. column B is named FruitCol and column C is named VegetablesCol
    For the second dropdown, choose to Allow: List, and use a formula that calculates the lookup range. For example, if the first dropdown list is in cell E2:
    =OFFSET(INDIRECT($E2),0,0,COUNTA(INDIRECT(E2&"Col")),1)

    if two-word items will be used, you can include the SUBSTITUTE function in the formula:

    =OFFSET(INDIRECT(SUBSTITUTE($F2," ","")),0,0,COUNTA(INDIRECT(SUBSTITUTE($F2," ","")&"Col")),1)

+ 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. Limit the number of rows that get copied.
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2011, 04:29 PM
  2. [SOLVED] is there a limit to the number of rows a worksheet can have?
    By Debi in forum Excel General
    Replies: 2
    Last Post: 05-22-2006, 09:50 AM
  3. Is there a limit on number of rows?
    By Chris in forum Excel General
    Replies: 3
    Last Post: 12-07-2005, 05:45 AM
  4. [SOLVED] expand number of rows from limit of 65,536?
    By Niner in forum Excel General
    Replies: 2
    Last Post: 03-29-2005, 03:06 PM
  5. [SOLVED] Is there a limit to the number of rows that can be filtered
    By W Paul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2005, 12:06 AM

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