+ Reply to Thread
Results 1 to 3 of 3

Delete range of cells if cell contains given value

  1. #1
    Registered User
    Join Date
    12-08-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    Delete range of cells if cell contains given value

    Hello and thank you for your forum! Looks like you have quite the group of Excel Heads hear

    I have the below given macro which does quite well at deleting the cell for a given value (Value = "_y-600_z-.jpg") in a given range. What I need for it to do is delete the cell contents if '_y-600_z-.jpg' is anywhere in the string. As an example, if the cell contains 'Handler_x-111251_y-600_z-.jpg' it will delete the cell contents.

    Thank you for your help!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Delete range of cells if cell contains given value

    Replace line:
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    12-08-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Delete range of cells if cell contains given value

    Thank you Olly!
    This works very well!

+ 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. Code look through range of cells, find blanks & delete cell range in the same row,
    By EagleInsight in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-10-2014, 11:24 AM
  2. [SOLVED] Delete range of cells based on a cell value (Date).
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-06-2013, 05:21 AM
  3. Delete a range of cells, using a variable as the cell description.
    By KevAmiga in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2013, 01:07 PM
  4. Delete first value and shift cells up when new cell gets added in a range (column)
    By nlazarov in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 08:34 AM
  5. Delete first value and shift cells up when new cell gets added in a range (column)
    By nlazarov in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2013, 07:53 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