+ Reply to Thread
Results 1 to 6 of 6

Delete cells and shift up

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    Delete cells and shift up

    I have data in cells A1:FM1326 I want to delete all of the cells that say FALSE and shift the remaining cells up. How do I do this? Thanks.
    Last edited by smiso24; 11-07-2009 at 04:07 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to delete certain cells and shift up

    Are there formulas in those cells giving answers or FALSE? I hope so.

    When the formulas in those cells return values, are they numeric? I hope so.

    First..change your formula so that it doesn't return FALSE, but returns an actual TEXT string like "FALSE" or "No".

    Then you can use a special-select method to select all the text cells at once.

    1) Highlight the range
    2) Press F5 and click on Special
    3) Select Formulas > Text only
    4) Click OK

    Now all the "FALSE" or "No" cells are highlighted.

    5) Click on Edit > Delete

    Those steps can be recorded into a macro very easily if the values in the range are such that you can use this technique.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Need to delete certain cells and shift up

    Yes, there is a formula that yields the FALSE value. The other values, however, are NOT numeric. What do I do?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to delete certain cells and shift up

    Post up a sample workbook so I can take a look. Hopefully there's a quick way, if not, then a macro would have to loop through every cell and evaluate. Yuck.

    Click GO ADVANCED and use the paperclip icon to post up your workbook.

  5. #5
    Registered User
    Join Date
    11-07-2009
    Location
    Ohio, United States
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Need to delete certain cells and shift up

    Actually, I got it! I found and replaced all the FALSE cells to blank cells and then used that F5 command you gave to delete all the blank cells and shift up. Thanks!

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Need to delete certain cells and shift up

    AH, great. I love the Special Cells feature...very useful, eh?

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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