+ Reply to Thread
Results 1 to 4 of 4

find a text in a range, delete it and delete the value in cell to its left

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Canada
    MS-Off Ver
    ms365
    Posts
    79

    find a text in a range, delete it and delete the value in cell to its left

    hello,

    I am trying to find a value in a certain range, if the value exists, I would like to delete this value in the cell and the value of a cell to its left. this is what I have so far.

    Please Login or Register  to view this content.
    the above VBA (which I got from recording a macro) doesn't include deleting the value of the cell beside it.

    any help would be appreciated. thank u in advance
    Last edited by snkhan; 07-12-2020 at 03:59 AM.

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: find a text in a range, delete it and delete the value in cell to its left

    Hi snkhan,

    Here's one way:

    Please Login or Register  to view this content.
    This works on all instances of "x" that are in the range B21:I22 within the REPORT tab.

    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    Canada
    MS-Off Ver
    ms365
    Posts
    79

    Re: find a text in a range, delete it and delete the value in cell to its left

    thank you, works perfecly

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: find a text in a range, delete it and delete the value in cell to its left

    Thanks for letting us know and you're welcome. Thanks too for the rep

+ 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. [SOLVED] find text, offset to the left 2 places resize and delete.
    By Andy15 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2017, 06:17 AM
  2. Macro to find Date Cells > Current Date and delete everything to left of that cell
    By LewisLonsdale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2015, 06:36 AM
  3. VBA code to delete the FILTERED range and moving the cell up (dont Delete entire row)
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-14-2015, 07:48 AM
  4. [SOLVED] Find text and delete range
    By trisoldee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2014, 03:38 PM
  5. Delete contents of a cell to the left of text
    By gtate@oop in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-28-2011, 12:53 PM
  6. Find Values, Delete and Move Left
    By rkeane7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2008, 09:34 AM
  7. delete all text to the left of???
    By Sheila in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-25-2005, 02:06 PM

Tags for this Thread

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