+ Reply to Thread
Results 1 to 7 of 7

Problem with ""

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Problem with ""

    Hi, anyone know how to sort data and excel will treat "" as blank? Coz i have a list of data, which include some empty row (which is ""). I try to sort, however, the "" will all be on top. How do i solve this?

    And aso, anyone know how to delete row which is blank ("") using VBA?

  2. #2
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Problem with ""

    Answering second question You can use

    if isempty(Your variable) then
    Your variable.delete


    If you want delete and move cells up start loop from the bottom of range to up
    Last edited by tom1977; 05-15-2012 at 05:46 AM.
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Problem with ""

    Quote Originally Posted by tom1977 View Post
    Answering second question You can use

    if isempty(Your variable) then
    Your variable.delete


    If you want delete and move cells up start loop from the bottom of range to up
    huh? u mean type =isempty? Its a formula or a vba command? Never heard before isempty. I not that good at excel.

  4. #4
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Problem with ""

    send a sample and I will send you back code
    isempty is VBA command

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Problem with ""

    Try this ...
    1/. Filter your data for blanks in the column you need to evaluate.
    2/. Select, and then delete the resulting rows
    3/. Sort the data as you require.

    No VBa or formulae required.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Problem with ""

    Quote Originally Posted by tom1977 View Post
    send a sample and I will send you back code
    isempty is VBA command
    How to send a sample? Whats your email?

  7. #7
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Problem with ""

    jp16 upload sample here on forum (please read the rules and You will know how to do it)

+ 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