+ Reply to Thread
Results 1 to 8 of 8

Unable to delete empty & get shift cell above which has data automatically using macro

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Post Unable to delete empty & get shift cell above which has data automatically using macro

    Hi all,

    I want to delete or ignore the empty cells and want to shift cells up or above which has data without disturbing the formulas within it on separate sheetSheet.xlsx.

    attached the sample excel sheet for more information

    please help on the same.


    Dev.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Unable to delete empty & get shift cell above which has data automatically using mac

    Select D3:D11>>Press CTRL+G>>Special>>Select Blanks>>Do Right Click>>Select Delete>>Shift Cells Up>>Ok…


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Unable to delete empty & get shift cell above which has data automatically using mac

    Sixthsense,

    Thank you so much for your quick and accurate response but sir this has to be done manually and I want excel vba code for the same and I don't want to delete the cell coz it has formulas in it.

    Thanks and regards,
    Dev.

  4. #4
    Registered User
    Join Date
    03-14-2012
    Location
    KERALA
    MS-Off Ver
    EXCEL 2007
    Posts
    18

    Re: Unable to delete empty & get shift cell above which has data automatically using mac

    i cant understand your need

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Unable to delete empty & get shift cell above which has data automatically using mac

    Just try record macro and do the given method. The record macro will show you how the code will look like..

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Unable to delete empty & get shift cell above which has data automatically using mac

    The code does not delete non-empty cells in column C as your sample shows. There are data in column C when you shift the data.

    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Unable to delete empty & get shift cell above which has data automatically using mac

    Or this delete empty cells in column D

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    04-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    113

    Post Unable to get desired result by referring multiple criteria

    Hi all,

    I want to get result using if statement if two criteria matches as example-I want if C1 has text ABC and C4 has value more than zero(Ex-1) answer should be ABC18MM AND if C1 has text XYZ and C4 has value more than zero(Ex-1) answer should be XYZ19MM.

    Have attached xls sheet for reference..

    kindly do the needful..


    Dev.
    Attached Files Attached Files

+ 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. Delete empty cells, and shift left
    By kiboodez in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 07-25-2014, 07:53 AM
  2. Replies: 8
    Last Post: 03-24-2012, 06:17 AM
  3. Macro, If cell A has data but cell B is empty delete complete row
    By stangz71 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-28-2011, 05:34 PM
  4. Delete empty cells and shift remaining left
    By kiboodez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2010, 02:17 PM
  5. How can I make cell data automatically shift up when deleting...
    By Orangepegs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-26-2005, 01:06 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