+ Reply to Thread
Results 1 to 3 of 3

Deleting Text in One Cell Based on Text In Another

  1. #1
    Registered User
    Join Date
    06-24-2015
    Location
    NJ
    MS-Off Ver
    2013
    Posts
    9

    Deleting Text in One Cell Based on Text In Another

    I'm sorry but I'm having a hard time inserting a table.

    I have a worksheet where column A1 has either M, S, or is blank.
    Column A2 is filled with single digit numbers on every row.

    I need a formula that says if there's nothing in cell A1 (A1 is blank), then delete the number in A2. OR at least something that says if A1 is blank then make A2 = 25000 (or some crazy number) so I can then find and replace the crazy number with a blank space.

    Any assistance is greatly appreciated.
    Last edited by clarkerots; 08-20-2015 at 07:28 PM.

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Deleting Text in One Cell Based on Text In Another

    Hello, try this one

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Deleting Text in One Cell Based on Text In Another

    Hi, welcome to the forum

    Formulas do not affect other cells, only the cell they reside in. They cannot "do" anything to other cells. If you need to change the contents of a cell, you could either use the suggested macro, or add a helper column that will ID your criteria. Then apply filters and filter on what you have ID'd
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Formula for Deleting Text based on Criteria
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-01-2015, 11:59 PM
  2. Formula for Deleting Text based on Criteria
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-31-2015, 04:00 PM
  3. Formula for Deleting Text based on Criteria
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 01-31-2015, 02:08 AM
  4. Deleting rows based on Date and Text
    By bobert5ama in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-17-2013, 12:29 AM
  5. [SOLVED] Trouble deleting entire row fr a range based on text in one cell & value of 0 in another
    By kmarshall6576 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2013, 11:36 AM
  6. [SOLVED] Deleting text in cell based on case
    By twckfa16 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-28-2012, 12:40 PM
  7. Deleting rows based upon partial cell text
    By mjwillyone in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2008, 10:29 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