+ Reply to Thread
Results 1 to 7 of 7

Need to know how to delete and shift cells up when an IF statement is blank

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2010
    Posts
    9

    Need to know how to delete and shift cells up when an IF statement is blank

    I need to know how to delete and shift cells up when an if statement is blank by not using a macro. For instance, my formula is =IF(ISBLANK('Master List !A12),"",IF('Master List '!A12>0,'Master List'!B12,"")). If this formula returns a blank in that cell I want it to shift the cells up to show only the ones with values. What would be the formula I would use?

  2. #2
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Need to know how to delete and shift cells up when an IF statement is blank

    I'm pretty certain that it is not possible to do what you are asking. You will need a macro to do that.

    However, you can use the filter function to filter out the blanks.

  3. #3
    Registered User
    Join Date
    07-10-2012
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Need to know how to delete and shift cells up when an IF statement is blank

    Okay, if i use a macro then and want it to delete the rows that are blank and shift up the rows with values how would I do that. For instance my cells that I want it to search for blank rows are A1:A219. Thank you for your help!

  4. #4
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Need to know how to delete and shift cells up when an IF statement is blank

    this will do it until the end of the column:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-10-2012
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Need to know how to delete and shift cells up when an IF statement is blank

    Okay, what if I want to hide the rows that are blank, but them unhide them when they come up with a value using a macro?

  6. #6
    Forum Contributor
    Join Date
    03-15-2007
    Location
    AL, USA
    MS-Off Ver
    2007
    Posts
    174

    Re: Need to know how to delete and shift cells up when an IF statement is blank

    This should do the trick:

    Please Login or Register  to view this content.
    Run this each time the data changes.

  7. #7
    Registered User
    Join Date
    07-10-2012
    Location
    Indianapolis, Indiana
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Need to know how to delete and shift cells up when an IF statement is blank

    Thank you so much it worked!!!!

+ 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