Closed Thread
Results 1 to 6 of 6

need help in fine-tuning a formula that removes blank cells in a column range

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    India
    MS-Off Ver
    Pro Plus 2019
    Posts
    86

    need help in fine-tuning a formula that removes blank cells in a column range

    hi!

    I need help in fine tuning a formula that removes blank cells from a column range.

    Problem is that the formula I found somehow tends to output the result 3 times irrespective of the value's actual presence in the range and sorts in the sequence of the value's first appearance in the range.

    Alternately, if someone has a better formula would appreciate if it can be shared.

    Following limitations may please be considered:
    1. No VBA/ Macros please since they are volatile and tend to disable undo option.
    2. No array formulas please (those committed with CTRL+SHIFT+ENTER), since my current solution already uses array formula and that has considerably slowed down calculations. My actual worksheet has about 100,000 cells with the array formula updated on a real time basis.
    3. The blank cells will actually not be blank but will be containing a formula and the cells are blank since the result of their calculation is blank.

    Sample file attached.

    Edit:

    Have uploaded another file called sample file_new.
    It ALMOST contains the solution I need. Only problem is that each value is now appearing uniquely. Any suggestions to make the values appear sequentially in the order they appear and multiple times?

    Regards,

    Naira
    Attached Files Attached Files
    Last edited by naira; 05-06-2013 at 04:28 AM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need help in fine-tuning a formula that removes blank cells in a column range

    in c2 put
    =IF(A2="","",MAX($C$1:C1)+1) fill down
    in D2 put
    =IF(ROWS($A$1:A1)>COUNT($C$2:$C$500),"",INDEX($A$2:$A$500,MATCH(SMALL($C$2:$C$500,ROWS($A$1:A1)),$C$2:$C$500,0)))
    fill down
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    04-06-2012
    Location
    India
    MS-Off Ver
    Pro Plus 2019
    Posts
    86

    Re: need help in fine-tuning a formula that removes blank cells in a column range

    The solution given by Martin works properly, but those in search of an even cleaner and faster solution would probably find the solution given on this link even better: http://www.excelforum.com/excel-form...uplicates.html
    Last edited by naira; 05-08-2013 at 11:59 PM.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: need help in fine-tuning a formula that removes blank cells in a column range

    what are you talking about?

  5. #5
    Registered User
    Join Date
    04-06-2012
    Location
    India
    MS-Off Ver
    Pro Plus 2019
    Posts
    86

    Re: need help in fine-tuning a formula that removes blank cells in a column range

    Quote Originally Posted by martindwilson View Post
    what are you talking about?
    I meant the solution given on another thread. I posted the link to that thread

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: need help in fine-tuning a formula that removes blank cells in a column range

    if you already HAVE a solution to this question, why bother to post it again and waste members time???

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    http://www.excelforum.com/excel-form...uplicates.html

    Thread Closed.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

Closed 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