Results 1 to 3 of 3

Linking to column in another Excel file + removing empty cells

Threaded View

  1. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Linking to column in another Excel file + removing empty cells

    You have two independent issues. One is to import or link to the data, and the other is to have a dynamically sized list for Data Validation.

    In Working File, use this formula to refer to each corresponding cell in Source File. It assumes both sets of data are in Column A.

    ='[Source File.xlsx]Sheet1'!A1&""

    Copy down for as many rows as desired. The &"" at the end forces conversion to a string so you don't get zeroes for blank cells.

    Now set up a named formula to provide the list. Under Formulas, Name Manager, add a name called DataList. The formula should look like this:

    =OFFSET(Sheet1!$A$1,0,0,COUNTIF(Sheet1!$A:$A,"*?*"),1)

    DataList is now a list of nonblank elements in column A (this assumes no embedded blank cells).

    Then for your dropdown box, use Data Validation, List, and provide =DataList as the list reference.

    If any of this is not clear let me know and I can post a simple example.
    Last edited by 6StringJazzer; 07-15-2013 at 02:39 PM.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 09-07-2012, 12:34 PM
  2. Linking to a column interspersed with empty cells?
    By Steve27 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2010, 08:24 PM
  3. Conditional Formatting of blank/empty cells in Excel 2007
    By OverKnight in forum Excel General
    Replies: 4
    Last Post: 01-09-2009, 05:39 PM
  4. Handling Errors in Values & Empty cells in Excel 2007
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 11-28-2007, 06:37 AM
  5. [SOLVED] linking with cells of others excel file
    By Omar Peru in forum Excel General
    Replies: 0
    Last Post: 05-08-2005, 04:06 PM

Tags for this Thread

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