+ Reply to Thread
Results 1 to 5 of 5

Remove blanks dynamically in range with blank cells

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    34

    Remove blanks dynamically in range with blank cells

    Edit: Remove duplicates!

    I would like to remove duplicates and blanks from a range of cells dynamically.

    In this fantastic video I can see how to do it from a list, but when there's blanks between the cell range it doesn't work.

    http://www.youtube.com/watch?v=IZLAzIYfMDU


    E.g. Range A1:A40 and there's blanks in A10, A25, A27, A35.


    Thank you in advance.

    Best regards,

    Guillermo
    Last edited by gjrr4x1; 03-07-2014 at 12:26 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Remove blanks dynamically in range with blank cells

    Hi,

    Rather than asking us to watch videos why don't you upload YOUR workbook and tell us what YOU want?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    Spain
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Remove blanks dynamically in range with blank cells

    Hi Richard,

    Sorry for my poorly written thread.

    Please find attached a workbook with what I'm looking for.

    I would like to obtain a list of all the different countries there's in the range B3:B30.


    Thank you for your help.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Remove blanks dynamically in range with blank cells

    Hi,

    Here's one way that uses a dynamic range name "lst" that expands and contracts automatically to cover your range of names, a pivot table based on that range, and a sheet change macro that automatically refreshes the pivot table when you add a new country.

    There are no doubt array formulas too that you could use although these tend to be a bit opaque and difficult to 'read'.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Remove blanks dynamically in range with blank cells

    if there is a blank at the start this will cause problems (so ill start your range at B4)

    in named ranges (ctrl+F3) enter this and call it "Range"

    Please Login or Register  to view this content.
    then the formula to drag for a list will be this

    Please Login or Register  to view this content.
    entered with Crtl+Shift+Enter

    see attached sheet as to how it works.

    Note there may be simpler ways but i worked this out before and it defiantly works

    Book 1 Remove Dups.xlsx (your file).

    Remove Duplicates Breakdown and Max with Index.xlsx (my explanation file)
    Last edited by twiggywales; 03-07-2014 at 01:22 PM.
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

+ 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: 5
    Last Post: 08-26-2013, 06:26 PM
  2. [SOLVED] Remove Blank Cells Formula when prior formula returns blanks
    By gmsninja in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2013, 03:39 AM
  3. Remove blank cells from a range
    By Dave in forum Excel General
    Replies: 2
    Last Post: 01-04-2006, 04:35 PM
  4. Condensing a list/range with blank cells to a new list/range without blanks
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] Condensing a list/range with blank cells to a new list/range without blanks
    By KR in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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