+ Reply to Thread
Results 1 to 6 of 6

search date value and then delete cell then shift up

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    search date value and then delete cell then shift up

    hi,

    i have dates in A4 to CV153 they are formatted as ddd-mmm-dd
    example:
    A4=06/19/16 format/shown as "Sun-Jun-19"

    how do i search the word "Sun" then if found delete the cell and shift up
    (shift the cell up in the column not the entire row)

    i have the initial code below

    Please Login or Register  to view this content.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: search date value and then delete cell then shift up

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Cheers!
    Deep Dave

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: search date value and then delete cell then shift up

    hi,

    attached sample file

    the bold format are just to easily discern dates with sunday for the sample file in sheet 1
    the output is in sheet 2
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: search date value and then delete cell then shift up

    Hello friends!
    Hope it's ok to jump in.
    I used the following code:
    Please Login or Register  to view this content.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  5. #5
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: search date value and then delete cell then shift up

    Try this

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: search date value and then delete cell then shift up

    hi,

    thanks guys, both code works great!

+ 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. VBA Delete cell and shift up
    By jordanpnu in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2015, 12:44 PM
  2. search - shift - delete
    By sidish in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-05-2015, 08:58 AM
  3. [SOLVED] Delete cell and shift left
    By aakhan2011 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2014, 01:06 AM
  4. Delete and shift cell up continous looping error
    By rflorentino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2014, 11:41 AM
  5. [SOLVED] If criteria met: delete cell and shift to the left but shift only over a certain range
    By olivierpbeland in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 07:44 AM
  6. [SOLVED] Loop to Delete Rows and Shift Up on Cell Value
    By ayvee0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2013, 11:04 AM
  7. search cell if blank delete cell shift values up
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2009, 10:01 PM

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