+ Reply to Thread
Results 1 to 12 of 12

No Spaces in Drop Down Lists

  1. #1
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    No Spaces in Drop Down Lists

    Hello,

    On the Status sheet there are drop down lists in M3 and P3. Is there a way to remove the empty spaces in those drop down lists?

    Thank you

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: No Spaces in Drop Down Lists

    Yes. Change the Named Range used for data validation to :

    =Customers!$C$2:INDEX(Customers!$C:$C,MATCH("zzz",Customers!$C:$C))

    that one is for the customer ID. Do similarly for the other one.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: No Spaces in Drop Down Lists

    Thanks Glenn you are the Formula King!


  4. #4
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: No Spaces in Drop Down Lists

    I did similar for the CompanyID but since there are IDs that don't have Company Names there are still blanks. Can you take a look please?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: No Spaces in Drop Down Lists

    OK. I see the problem. Can we create a helper column somewhere, anywhere - for example on a hidden sheet, that contains all the non-blank values??

  6. #6
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: No Spaces in Drop Down Lists

    Sure of course thanks

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: No Spaces in Drop Down Lists

    The formula is on ID_List:

    =IFERROR(INDEX(Customers!D:D,AGGREGATE(15,6,ROW(Customers!$D$2:$D$100)/(Customers!$D$2:$D$100<>""),ROWS($1:1))),"")

    Adjust ranges, as needed. The Named range is now:

    =ID_List!$A$1:INDEX(ID_List!$A:$A,MATCH("zzz",ID_List!$A:$A))
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: No Spaces in Drop Down Lists

    Thanks so much that is perfect!

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,194

    Re: No Spaces in Drop Down Lists

    You're welcome. Thanks for the rep.

  10. #10
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,313

    Re: No Spaces in Drop Down Lists

    Hi, these comments are intended as constructive and in no way meant negatively.
    I am surprised that no one opening your file to assist your query has failed to comment upon the fact your application would rapidly grind to a halt.
    You are saving each invoice to a separate tab, each embedded with formula, 1,000 invoices = 140MB, even if Excel allows you to add that many tabs.
    Personally I would re-visit your application and emulate procedures adopted by most accounting programs.
    Create a single sheet "transaction history" then create or retrieve your invoices 'on the fly' (using template or coded structure) as and when needed.
    Below is a recent link that demonstrates how quickly an application can become memory hungry and slow.
    torachan.



  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: No Spaces in Drop Down Lists

    I didn't look at the individual sheets that torachan has mentioned above, but I did notice the empty rows (and columns on some sheets) which are causing file bloat due to the way you have set things up.

    Instead of 'setting up' rows in advance, use a structured table to make everything dynamic.

    If you remove entire rows or columns of data, then use right click and delete instead of the delete / backspace key.

    Take a look here for more on this https://chandoo.org/wp/big-trouble-i...e-spreadsheet/

  12. #12
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: No Spaces in Drop Down Lists

    The structured table idea has been floated in earlier threads, but so far ignored.
    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.

+ 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. merging lists without spaces
    By MDSmall in forum Excel General
    Replies: 1
    Last Post: 01-09-2018, 03:18 PM
  2. [SOLVED] data validation lists - drop down lists too small
    By reglook0736 in forum Excel General
    Replies: 3
    Last Post: 04-24-2015, 12:49 PM
  3. Dependent drop down lists without creating unique named lists
    By pajordan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 12:20 PM
  4. Excel 2007 : Microsoft Excel Spaces in Dependant Lists...
    By GhostfaceKillah in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 10:00 AM
  5. Dependent Lists With Spaces in the Main List
    By joseph_707 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-12-2009, 03:31 PM
  6. drop down lists referencing tables creating other drop down lists!!
    By Stumped- in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 08-07-2009, 11:29 AM
  7. Validation Pick Lists: Picks containing spaces
    By ComcoDG in forum Excel General
    Replies: 11
    Last Post: 07-15-2008, 04:42 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