+ Reply to Thread
Results 1 to 4 of 4

Creating a list box, removing blanks from source data

  1. #1
    Registered User
    Join Date
    12-03-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2002
    Posts
    2

    Creating a list box, removing blanks from source data

    Hi,

    I would like to create a list within cell A1, sheet 1, with the source being column B from sheet 2.

    Column B is constantly being refreshed so the number of entries in column B changes. Therefore I would like the list to only show text in column B, and to remove any blank cells.

    I would prefer not to use VBA.

    Thanks.

  2. #2
    Registered User
    Join Date
    08-06-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Creating a list box, removing blanks from source data

    Do you want to use drop-down in Sheet1 A1?

    1) Name the Range of Sheet 2 Column B [example: source]
    2) Use data validation in SHeet1 A1 using =source

    Hope it helps

  3. #3
    Forum Guru teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Creating a list box, removing blanks from source data

    Or, create a dynamic range name that spans only the entries in column B. Assuming B1 is a header

    Insert - Name - Define - MyRange - Refers to

    =offset(B1,1,0,counta(B:B)-1,1)

    Then use in column A

    Data - Validation - List - Source

    =MyRange

    hth

  4. #4
    Registered User
    Join Date
    12-03-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2002
    Posts
    2

    Re: Creating a list box, removing blanks from source data

    Thanks teylyn, that is exactly what I need!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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